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.


-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux