home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!cs.utexas.edu!uwm.edu!spool.mu.edu!umn.edu!csus.edu!netcom.com!zmbenhal
- From: zmbenhal@netcom.com (Zeyd M. Ben-Halim)
- Subject: Re: Problem(bug?) when running background jobs with X windows
- Message-ID: <1992Dec16.110421.1398@netcom.com>
- Organization: Netcom - Online Communication Services (408 241-9760 guest)
- References: <1992Dec16.053232.19524@eng.umd.edu> <1992Dec16.070424.5950@tc.cornell.edu>
- Date: Wed, 16 Dec 1992 11:04:21 GMT
- Lines: 26
-
- In article <1992Dec16.070424.5950@tc.cornell.edu> mdw@db.TC.Cornell.EDU (Matt Welsh) writes:
- >In article <1992Dec16.053232.19524@eng.umd.edu> yjwu@eng.umd.edu (Yu-Jen Wu) writes:
- >>I found a problem(maybe a bug?) when I try to do some background jobs under X.
- >>If I send the job to the background and then exit X, that job would be killed.
- >>This does not(and should not) happen for Sun Unix---all background jobs under
- >>X would be still running even if you exit X.
- >
- >If you put them in the background with a command such as
- >
- > foo &
- >
- >Then they should be killed, as the parent shell that spawned the process is killed
- >when you exit X. If you don't want the processes to go away, try using 'nohup'
- >or fork and orphan the process by hand.
-
- doesn't this behavior depend on the shell being used? I seem to remember that
- csh'ish ones do not need a nohup, but sh'ish ones do (or was it bsd vs. usg ?)
-
- >
- >mdw
- >--
- >Matt Welsh mdw@tc.cornell.edu Cornell Theory Center
- > "It's a Katana, ya Midwestern Computer Geek." --Tom Payne
-
- Zeyd
-
-