This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Don't enqueue pending signals during global destruction
authorLubomir Rintel <lkundrak@v3.sk>
Thu, 25 Jun 2009 20:57:46 +0000 (22:57 +0200)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Thu, 25 Jun 2009 20:57:46 +0000 (22:57 +0200)
commit31c91b4357905486e81f901ad079da5735bdb7ba
treed6caeb0b0d3db61a19404bb65574adb8cc9029a5
parent05b4f1ece255de95efcc5a4c74e28b5d04f54401
Don't enqueue pending signals during global destruction

Global destruction is not signal-safe. PL_psig_pend may already
be gone when the signal handler is called (with destruct_level > 0).
NULL it before freeing it to prevent a race condition.
mg.c
perl.c