develooper Front page | perl.perl5.porters | Postings from April 2003

[perl #2681] perlbug problem && io/openpid test fails

Thread Previous | Thread Next
From:
Arthur Bergman
Date:
April 26, 2003 01:22
Subject:
[perl #2681] perlbug problem && io/openpid test fails
Message ID:
rt-2681-55958.7.9912579989179@bugs6.perl.org
The problem seems to be that /bin/sh sends a signal to the perl process wich dies.

Does this still happen in perl5.8.0? I guess it is since this isn't really a perl bug. Can't we 
just add a $SIG{'HUP'} = sub {} to make it happy?

Something along the life of this patch.

***************
*** 23,29 ****
  use Config;
  $| = 1;
  $SIG{PIPE} = 'IGNORE';
! 
  my $perl = which_perl();
  $perl .= qq[ "-I../lib"];
  
--- 23,29 ----
  use Config;
  $| = 1;
  $SIG{PIPE} = 'IGNORE';
! $SIG{HUP}  = sub {};  # to avoid this process going away 
  my $perl = which_perl();
  $perl .= qq[ "-I../lib"];

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