Commit e0d3ed73 authored by unknown's avatar unknown

Portability fix

parent 00d5ed8a
...@@ -218,7 +218,9 @@ void write_core(int sig) ...@@ -218,7 +218,9 @@ void write_core(int sig)
{ {
signal(sig, SIG_DFL); signal(sig, SIG_DFL);
pthread_kill(pthread_self(), sig); pthread_kill(pthread_self(), sig);
#if defined(P_PID) && defined(P_MYID)
/* On Solaris, the above kill is not enough */ /* On Solaris, the above kill is not enough */
sigsend(P_PID,P_MYID,sig); sigsend(P_PID,P_MYID,sig);
#endif
} }
#endif #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment