Allow CK to terminate on FreeBSD
Remco Treffkorn
remco at rvt.com
Fri Aug 31 12:49:15 PDT 2007
On Friday 31 August 2007, Joe Marcus Clarke wrote:
> I dug into the FreeBSD kernel some more, and found that if signal
> handlers are registered, the tsleep() function will know which signals
> are allowed to interrupt the ioctl syscall, thus causing it to return
> EINTR. Based on this, I put together this patch which fixes the
> termination problem. It may not be the ideal place for the signal
> handler registration, but it does the job.
>
> I can send a formal git patch once people have a chance to comment.
>
> Joe
So, the VT_WAITACTIVE ioctl returns EINTR when SIGTERM is sent to the process?
The signal handler should now have been called already.
For me that sounds like fixing a symptom, since we really don't understand
what the problem is.
Also, returning with EINTR only means the process received a signal. Does not
have to be SIGTERM.
Cheers,
Remco
--
Remco Treffkorn (RT445)
HAM DC2XT
remco at rvt.com (831) 685-1201
More information about the hal
mailing list