Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Ravada-Mirror
Commits
af6d0029
Commit
af6d0029
authored
Nov 23, 2016
by
Francesc Guasch
Browse files
[#61] disconnect before fork
parent
f5c12f3a
Changes
1
Show whitespace changes
Inline
Side-by-side
lib/Ravada.pm
View file @
af6d0029
...
...
@@ -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
);
};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment