[comp.lang.perl] Keeping DM from killing process at logout

mth@cci632.cci.com (Michael Hickman) (04/16/91)

I have written a program in PERL that forks daemon process.  I have the
daemon process do a ioctl(TTY, &TIOCNOTTY, 0), and even give it a unique
process group id with setpgid(0, $$).  When running under an rlogin shell,
I can logout and the daemon process keeps running.  However, if I'm using
the Display Manager, it does it's utmost to kill the process when I logout.

Since the apollo doesn't have a NOHUP signal, I can't kill('NOHUP', $$) it.o

How can I setup a process so that the DM won't kill it upon logging out???

Thanks in advance!
 
Michael T. Hickman                 mth@cci.com
CAE/CAD Systems Administrator      (716)482-5000 x2913
Computer Consoles Inc.     
Rochester, NY            

-- 
               .
          ____ _\        Michael T. Hickman
 ----____/ ___/  )       CAE/CAD Systems Administrator
/ ___ _--- /    /___     Computer Consoles Inc.

rtb@cernapo.cern.ch (Rainer Tobbicke) (04/16/91)

mth@cci632.cci.com (Michael Hickman) writes:


>I have written a program in PERL that forks daemon process.  I have the
>daemon process do a ioctl(TTY, &TIOCNOTTY, 0), and even give it a unique
>process group id with setpgid(0, $$).  When running under an rlogin shell,
>I can logout and the daemon process keeps running.  However, if I'm using
>the Display Manager, it does it's utmost to kill the process when I logout.

Create a server process, either with the 'cps' DM command or with
/etc/server -p my.script.
--
Rainer Toebbicke       
European Organisation for Nuclear Research (CERN)
Geneva, Switzerland
rtb@cernapo.cern.ch, rtb@cernvm.cern.ch