Perl / perl5

🐪 The Perl programming language
https://dev.perl.org/perl5/
Other
1.86k stars 528 forks source link

Re: POSIX::sigprocmask is non-permanent #5576

Closed p5pRT closed 20 years ago

p5pRT commented 21 years ago

Migrated from rt.perl.org#9677 (status was 'resolved')

Searchable as RT9677$

p5pRT commented 21 years ago

From cmadams@hiwaay.net

Once upon a time\, Greg Bacon \gbacon@​mail\.hiwaay\.net said​:

POSIX​::sigprocmask doesn't seem to permanently alter the signal mask.

It appears (from tracing processes\, not examining the perl source) that perl gets the signal mask before executing anything in the called program and restores the signal mask to the original state after the program exits\, but has no way to notice (or be notified) that the signal mask was changed somewhere in between.

I don't understand why perl should even touch the blocked signal mask. -- Chris Adams \cmadams@​hiwaay\.net Systems and Network Administrator - HiWAAY Internet Services I don't speak for anybody but myself - that's enough trouble.