From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,78d60789968fab19 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-11-24 06:35:47 PST Newsgroups: comp.unix.osf.osf1 Path: nntp.gmd.de!newsserver.jvnc.net!news.cac.psu.edu!news.pop.psu.edu!psuvax1!uwm.edu!news.alpha.net!news.mathworks.com!noc.near.net!atria.com!jtk From: jtk@atria.com (John Kohl) Subject: Re: rc3/rc3.d problems In-Reply-To: top@ccrs.emr.ca's message of Wed, 23 Nov 1994 16:11:05 GMT Message-ID: Sender: news@atria.com Nntp-Posting-Host: banana.atria.com Organization: Atria Software, Inc. References: Date: Wed, 23 Nov 1994 18:13:35 GMT >>>>> "Andrew" == Andrew Top writes: In article top@ccrs.emr.ca (Andrew Top) writes: Andrew> The line I'm using works at the prompt but not as a startup Andrew> process. Could someone inform me as to what I'm doing wrong? Andrew> What shell are these run in? Am I right about rc3, that I Andrew> shouldn't be using rc1 or rc2? This should probably go into the FAQ. My experience is that this happens with programs which do not properly detach from the terminal; the startup process will revoke terminal access when the console login prompt starts, and this often results in the termination of ill-behaved background processes. Try this program as a wrapper to your license process: main(int argc, char *argv[]) { close(0); close(1); close(2); setsid(); ++argv; execv(argv[0], argv); } -- John Kohl or working for but not representing: Atria Software sometimes hacking on: NetBSD/i386