SOURCES: lstat-fping.patch (NEW) - fping zombie patch
dzeus
dzeus at pld-linux.org
Sat Mar 14 22:25:08 CET 2009
Author: dzeus Date: Sat Mar 14 21:25:08 2009 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- fping zombie patch
---- Files affected:
SOURCES:
lstat-fping.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/lstat-fping.patch
diff -u /dev/null SOURCES/lstat-fping.patch:1.1
--- /dev/null Sat Mar 14 22:25:09 2009
+++ SOURCES/lstat-fping.patch Sat Mar 14 22:25:03 2009
@@ -0,0 +1,19 @@
+--- /src/lib/Std_obj.pm.in.orig 2009-03-14 22:20:52.679167082 +0100
++++ /src/lib/Std_obj.pm.in 2009-03-14 22:22:10.153038369 +0100
+@@ -1489,7 +1489,7 @@
+ #safe run this command
+ $SIG{'CLD'} = "IGNORE"; #prevent zombies
+ eval {
+- open3(\*INPUT, \*OUTPUT, \*ERROR, $fping, $fpingargs);
++ $fpingpid = open3(\*INPUT, \*OUTPUT, \*ERROR, $fping, $fpingargs);
+
+ foreach my $RefHash (@$IPRef) {
+ print INPUT "$$RefHash{'ADDR'}\n";
+@@ -1499,6 +1499,7 @@
+ @erroutput=<ERROR>;
+ close (OUTPUT);
+ close (ERROR);
++ waitpid ($fpingpid, 0);
+ }; #end eval
+ $SIG{'CLD'} = "DEFAULT"; #restore default handler
+
================================================================
More information about the pld-cvs-commit
mailing list