glib & *nix signals



I'm looking for some notes / advise on catching SIGTERM in a glib main
loop based program. 
Mainly on linux, but other kernels would be nice. This article:

http://www.linuxjournal.com/article/2121

for instance, recommends masking all signals all the time and creating a
dedicated thread siting around in a call to sigwait(). Translating that
into glib threads might work. Any thoughts?





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