main: Unregister signal handler before destroying my_perl
authorJohn Wright <john@johnwright.org>
Wed, 6 May 2009 06:47:15 +0000 (00:47 -0600)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Sun, 7 Jun 2009 12:59:56 +0000 (14:59 +0200)
commit01be0729981136a058cce07a897ccdb94609e1c0
treee4f1339d6e4abd0cf92adda183890a8d2cf465df
parentd8ada404a5a63daf28046c6ff04ca8a872c4d63a
main: Unregister signal handler before destroying my_perl

If the signal handler runs after perl_destruct() has been called, it
will get an invalid (or NULL) my_perl when it asks for the
thread-specific interpreter struct.  This patch resets the signal
handler for any signal previously handled by PL_csighandlerp to SIG_DFL
before calling perl_destruct().
miniperlmain.c