nanogui: silkscreen buttons, GrCloseWindows
Subject:
Re: silkscreen buttons, GrCloseWindows
From:
Alex Holden ####@####.####
Date:
15 Nov 2000 13:30:22 -0000
Message-Id: <Pine.LNX.4.04.10011151319010.1219-100000@hyperspace.linuxhacker.org>
On Wed, 15 Nov 2000, Morten Rolland wrote:
> The problem with a process in the Z state is that you need to use
Ah, I missed that bit because the original message was all on one line and
ran off the end of the screen.
Put something like this in the parent program (cut & pasted from npanel):
#include <signal.h>
#include <sys/wait.h>
void reaper(int signum) { while(waitpid(WAIT_ANY, NULL, WNOHANG) > 0); }
Somewhere in your initialisation routine:
signal(SIGCHLD, &reaper);
What this does is calls waitpid() to reap the dead children when it gets a
SIGCHLD signal (triggered whenever a child exits).
--
------- Alex Holden -------
http://www.linuxhacker.org/
http://www.robogeeks.org/