Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!rochester!ritcv!cci632!ccicpg!felix!chuck From: chuck@felix.UUCP Newsgroups: comp.unix.ultrix Subject: Re: killpg(2) fails (sometimes) Message-ID: <15184@felix.UUCP> Date: Wed, 2-Dec-87 20:23:04 EST Article-I.D.: felix.15184 Posted: Wed Dec 2 20:23:04 1987 Date-Received: Sun, 6-Dec-87 20:11:50 EST Sender: chuck@felix.UUCP Reply-To: gordon@prls.UUCP (Gordon Vickers) Organization: Philips Research Labs, Sunnyvale, California Lines: 49 Approved: zemon@felix.UUCP Reply-Path: -In an article, mouse&uunet (der Mouse) writes: In article <10364@felix.UUCP>, gordon@prls.UUCP (Gordon Vickers) writes: I am currently running 1.2 though I've had this problem since 1.0. I have a very simple interface to the killpg(2) call but it fails if the parent process was started in rc.local. [...] The killgp(2) call has worked flawlessly everytime except for those occations when xxx was started from /etc/rc.local. - -This is not peculiar to Ultrix. -I have been checking mtXinu 4.3+NFS source on this subject; I expect -that this code is nearly identical in all Berkeley derivatives. The -pronouncements below about what is and isn't done are thus based on the -mtXinu 4.3+NFS code. Three or four weeks ago, someone sent me the aprropriate fix to my problem. Since it has been a while, I no longer have the message so I don't know who deserves the credit (Sorry Mr/Mrs/Ms However ). One line of code fixed the problem. Had I been more familar with the availiable library routines prehaps I would not have had the difficulty. The line that cured it all: setpgrp(0, getpid()); Pretty easy huh? BTW: Thanks to ALL that responded, even the inappropriate suggestions contained interesting ideas and usefull knowelge. Gordon P. Vickers, (408) 991-5370, ======================= Signetics Corp. || Ultrix-32 ver 1.2 || PO Box 3409 M/S 69 || VAX 11/750 || Sunnyvale, California, USA 94086 ======================= {pyramid, philabs}!prls!gordon ----- ALL DISCLAIMERS APPLY. In fact I have sent this whole mess by mistake.