Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!samsung!umich!terminator!pisa.ifs.umich.edu!rees From: rees@pisa.ifs.umich.edu (Jim Rees) Newsgroups: comp.sys.apollo Subject: Re: How do you create a persistent background process from DM? Message-ID: <1990Sep12.131836@pisa.ifs.umich.edu> Date: 12 Sep 90 17:27:55 GMT References: <2411@dover.sps.mot.com> Sender: usenet@terminator.cc.umich.edu (usenet news) Reply-To: rees@citi.umich.edu (Jim Rees) Organization: University of Michigan IFS Project Lines: 21 In article <2411@dover.sps.mot.com>, talent@spanky.sps.mot.com writes: I need to start a background process from a display manager window that will continue running after logout. I've tried nohup, nice, and &. The process is started from a /bin/csh script running in a DM window. This has worked at various times in the past but seems to be broken again now. I have a program I use instead of the 'nohup' builtin. It contains the following code: setpgrp(0, getpid()); signal(SIGHUP, SIG_IGN); ioctl(0, TIOCNOTTY, 0); maxfds = getdtablesize(); for (i = 0; i < maxfds; i++) close(i); This works fine on sr10.2.