develooper Front page | perl.perl5.porters | Postings from January 2001

Re: [PATCH] Re: [ID 20010105.002] close() on process filehandle leaves defunct process

Thread Previous | Thread Next
From:
Radu Greab
Date:
January 6, 2001 17:17
Subject:
Re: [PATCH] Re: [ID 20010105.002] close() on process filehandle leaves defunct process
Message ID:
14935.50055.838449.408835@ix.netsoft.ro
On Fri, 5 Jan 2001 16:46 -0600, Jarkko Hietaniemi wrote:
 > Thanks, applied. Though I have doubts about portability of the test,
 > $SIG{CHLD} is not used elsewhere in the tests.  But maybe the fork()
 > prerequirement will protect us.

I have been maybe too enthusiastic. The $SIG{CHLD} assignment may be
removed. Patch below :-)


Thanks,
Radu Greab


--- io/pipe.t~	Sat Jan  6 00:45:29 2001
+++ io/pipe.t	Sun Jan  7 02:44:01 2001
@@ -188,7 +188,6 @@
 
 # check that child is reaped if the piped program can't be executed
 {
-  local $SIG{CHLD} = 'DEFAULT';
   open NIL, '/no_such_process |';
   close NIL;
 

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About