Re: Too Slow To Stop

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 08 Aug 2007 11:46:38 -0500, Mikkel L. Ellertson wrote:

[...]
> with a couple of minor changes, the script looks fine. The problem
> may be that your proc does not respond to a SIGTERM, so it is not
> killed until the killproc function sends a SIGKILL. If this is the
> case, then you may want to change "killproc $proc_prog" to
> "killproc $proc_prog SIGKILL" so that it sends the kill signal right
> away. A better fix would be if the process would respond to a
> SIGTERM by doing a proper shutdown. Does your program trap SIGTERM
> and do anything with it? (Or trap and ignore it?)
> 
> Mikkel
> -- 
[...]

I am not trapping any signals, but I think I'll try it.
Since the process is multi-threaded, it may be an
adventure.  I think I will have the signal processor
set a flag that only it sets, and then trigger a
condition variable.

Mike.



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux