Re: Bug: deadlock from msyslog

2016-03-22 Thread Gary E. Miller
Yo Hal! On Mon, 21 Mar 2016 23:25:00 -0700 Hal Murray wrote: > g...@rellim.com said: > > Check out "man 7 signal", almost nothing is legal to call from > > within a signal. You can't even open() of fopen() anything. About > > the best you can do is write(STDERR,) and exit(). > > Right. I

Re: Bug: deadlock from msyslog

2016-03-21 Thread Hal Murray
g...@rellim.com said: > Check out "man 7 signal", almost nothing is legal to call from within a > signal. You can't even open() of fopen() anything. About the best you can > do is write(STDERR,) and exit(). Right. I was wondering if there was any software that would check that. For ntpd, wri

Re: Bug: deadlock from msyslog

2016-03-21 Thread Gary E. Miller
Yo Hal! On Mon, 21 Mar 2016 20:23:41 -0700 Hal Murray wrote: > e...@thyrsus.com said: > > I just ported in the Classic fix "[Bug 2814] msyslog deadlock when > > signaled." I think that'll do it for this one. > > Is there any software that will check signal handlers to see if they > call (or

Re: Bug: deadlock from msyslog

2016-03-21 Thread Hal Murray
e...@thyrsus.com said: > I just ported in the Classic fix "[Bug 2814] msyslog deadlock when > signaled." I think that'll do it for this one. Is there any software that will check signal handlers to see if they call (or call anything that calls) any non-signal-safe routines? I don't know if it'

Re: Bug: deadlock from msyslog

2016-03-21 Thread Eric S. Raymond
Hal Murray : > > A while (months) ago, we had troubles with msyslog scrambling output when > called from the DNS thread and the main thread at the same time. That was > fixed by adding a lock. > > That will deadlock if a signal handler calls msyslog when the signal goes off > in the middle of