Displaying 1 result from an estimated 1 matches for "dont_reinstall_sig".
1998 Sep 01
0
SOLARIS:SIGPIPE in nmbd (PR#8723)
...t:-)
>
> static int sig_pipe(void)
> {
> BlockSignals( True, SIGPIPE );
>
> DEBUG( 0, ("Got SIGPIPE\n") );
> if ( !is_daemon )
> exit(1);
> BlockSignals( False, SIGPIPE );
> #ifndef DONT_REINSTALL_SIG
> signal(SIGHUP,SIGNAL_CAST sig_pipe);
> WOW!!! -------------^^^
> #endif
> return(0);
> } /* sig_pipe */
>
> I'm speechless...
Guilty as charged I'm afraid. I screwed that up - I don't
know how - just a 'cut-n-paste'...