projects
/
pve-access-control.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6e9428
)
flush output file handle and send kill to whole process group
author
Dietmar Maurer
<dietmar@proxmox.com>
Mon, 12 Sep 2011 11:50:21 +0000
(13:50 +0200)
committer
Dietmar Maurer
<dietmar@proxmox.com>
Mon, 12 Sep 2011 11:50:21 +0000
(13:50 +0200)
PVE/RPCEnvironment.pm
patch
|
blob
|
blame
|
history
diff --git
a/PVE/RPCEnvironment.pm
b/PVE/RPCEnvironment.pm
index a18ceb1c8fbb568c976449dab23777f6fc1fefe6..007c3c4f813769cab75e6844be80302e240519d1 100644
(file)
--- a/
PVE/RPCEnvironment.pm
+++ b/
PVE/RPCEnvironment.pm
@@
-530,7
+530,7
@@
sub fork_worker {
kill('KILL', $$);
}
- # sync with parent (signal that we are read)
+ # sync with parent (signal that we are read
y
)
if ($sync) {
print "$upid\n";
} else {
@@
-632,6
+632,7
@@
sub fork_worker {
}
if ($outfh) {
print $outfh $line;
+ $outfh->flush();
}
}
}
@@
-653,10
+654,10
@@
sub fork_worker {
if ($outfh) {
print $outfh "TASK ERROR: $err\n";
}
- kill (15, $cpid);
+ kill (
-
15, $cpid);
} else {
- kill (9, $cpid); # make sure it gets killed
+ kill (
-
9, $cpid); # make sure it gets killed
}
close($outfh);