Re: Linux signals and GLIB g_io_channel usage
- From: James Scott Jr <skoona verizon net>
- To: "C.R. Kirkwood-Watts" <kirkwood totzeit net>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Linux signals and GLIB g_io_channel usage
- Date: Mon, 13 Nov 2006 22:31:10 -0500
On Mon, 2006-11-13 at 17:02 -0800, C.R. Kirkwood-Watts wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
James Scott Jr wrote:
On Mon, 2006-11-13 at 02:15 -0500, Freddie Unpenstein wrote:
On Mon 10/23, James Scott Jr < skoona verizon net > wrote:
I am about to write the socket module of a program that follows the
gnu standard structure for a daemon. I am using glib wherever
possible and have a question concerning the use of linux signals.
Basically, I have blocked all signals on all threads according to
the standard daemon model and use a single thread with a sigwait()
to process the ones I'm interested in; like SIGHUP to reload the
config file.
I'm curious, to know where this documentation is... Happen to have a URL handy?
The docs are also in most devhelp installations, try "$ devhelp" on your
console.
I assumed that the question pertained to the "gnu standard structure for
a daemon" part of your post. In either case, I would like to know
whence _that_ documentation.
Chris.
Ok, I may have misunderstood the question, as my answer related to
g_io_channel... usage.
If I am back on track, the standard daemon model is based on my
interpretation of google results where like these:
http://www.linuxprofilm.com/articles/linux-daemon-howto.html
http://www.enderunix.org/documents/eng/daemon.php . Where a particular
sequence of startup steps are repeated over and over throughout multiple
search hits. The summary statement "gnu standard structure for a
daemon" is solely my observation, and not official.
Additionally, this daemon search lead me to look for additional info on
linux signals and posix threads; where the "Linux Journal" and "Advanced
Linux Programming" yeided the best answers. Here are couple links
related to signal handling with multiple posix threads -
http://www.linuxjournal.com/article/2121, and
http://www.linuxjournal.com/article/3985 .
I hope this is what your after.
James,
________________________________________________________________________
Registered Linux User #270764
FC5 on Dual AMD 2400+ MPs
________________________________________________________________________
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]