Path: utzoo!attcan!uunet!husc6!bloom-beacon!gatech!rutgers!bellcore!texbell!sugar!ficc!peter From: peter@ficc.uu.net (Peter da Silva) Newsgroups: comp.sources.d Subject: Re: "monthd" doesn't terminate Keywords: month, exit, ultrix 1.2 Message-ID: <2299@ficc.uu.net> Date: 24 Nov 88 14:48:24 GMT References: <1252@leah.Albany.Edu> <416@tnosoes.UUCP> Organization: SCADA Lines: 17 In article <416@tnosoes.UUCP>, tom@tnosoes.UUCP (Tom Vijlbrief) writes: > I posted a buggy fix for the not terminating monthd :-( . I think you just posted another one. > return(kill(parent_pid, 0) < 0 && errno == ESRCH);/* Parent is gone */ > This one should work... Unless you kicked month off in a subshell. I would recommend basing this on the process group id (which is the process ID of your login shell) instead of your parent. I don't understand the point of all these shenanigans, anyway, since month catches that ol' signal 1 and terminates just fine. -- Peter da Silva `-_-' Ferranti International Controls Corporation "Have you hugged U your wolf today?" uunet.uu.net!ficc!peter Disclaimer: My typos are my own damn business. peter@ficc.uu.net