]> Zhao Yanbai Git Server - minix.git/commitdiff
Provide information on lethal signals (stacktrace and signo)
authorErik van der Kouwe <erik@minix3.org>
Wed, 14 Apr 2010 09:06:34 +0000 (09:06 +0000)
committerErik van der Kouwe <erik@minix3.org>
Wed, 14 Apr 2010 09:06:34 +0000 (09:06 +0000)
kernel/system.c

index a7f0685048919e247612d91c534b337767034aef..e49a20009cff61e0ba0c5b31568670c4e9bc16b0 100644 (file)
@@ -373,7 +373,9 @@ int sig_nr;                 /* signal to be sent */
   /* If the target is the signal manager of itself, send the signal directly. */
   if(rp->p_endpoint == sig_mgr) {
        if(SIGS_IS_LETHAL(sig_nr)) {
-           panic("cause_sig: signal manager gets lethal signal for itself");
+           proc_stacktrace(rp);
+           panic("cause_sig: signal manager gets lethal signal %d for itself",
+               sig_nr);
        }
        sigaddset(&priv(rp)->s_sig_pending, sig_nr);
        send_sig(rp->p_endpoint, SIGKSIGSM);