Commit af6d0029 authored by Francesc Guasch's avatar Francesc Guasch
Browse files

[#61] disconnect before fork

parent f5c12f3a
......@@ -631,6 +631,8 @@ sub _execute {
if ($dont_fork || !$CAN_FORK ) {
$self->_connect_vm();
eval { $sub->($self,$request) };
my $err = ($@ or '');
$request->error($err);
......@@ -643,6 +645,7 @@ sub _execute {
die "I can't fork" if !defined $pid;
if ($pid == 0) {
$request->status("forked $$");
$self->_connect_vm();
eval {
$sub->($self,$request);
};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment