Path: utzoo!attcan!uunet!tut.cis.ohio-state.edu!bloom-beacon!20cvx1.draper.COM!NEVILLE
From: NEVILLE@20cvx1.draper.COM
Newsgroups: comp.windows.x
Subject: Signals and X
Message-ID: <8908121821.AA17340@expo.lcs.mit.edu>
Date: 11 Aug 89 20:14:00 GMT
Sender: daemon@bloom-beacon.MIT.EDU
Organization: The Internet
Lines: 23

Hi,
	I know this may have discussed before but....

	Is it bad to Trap signals like this in an X program ?

	void zombie_ast(signum)
	int signum;
	{
		wait();
		signal(SIGCHLD,zombie_ast);
	}

	We are doing this to get rid of defunct processes
and it works until we try to use X program we wrote.  This is
BAD.  It crashes with a memory fault core dumped.

	Is there a better way to do this ?

	We use an HP/9000 360 with UNIX 6.5 (SYS V)
and X11r3.  The program uses widgets.

				Thanks In Advance,	
				George