home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.internals
- Path: sparky!uunet!wupost!udel!sbcs.sunysb.edu!sbgrad7!shane
- From: shane@sbgrad7.cs.sunysb.edu (Shane Bouslough)
- Subject: Re: How can a Unix process put itself in background?
- Message-ID: <1992Sep13.180417.9485@sbcs.sunysb.edu>
- Sender: usenet@sbcs.sunysb.edu (Usenet poster)
- Nntp-Posting-Host: sbgrad7
- Organization: State University of New York at Stony Brook
- References: <lma.716056953@dayton.Stanford.EDU> <lma.716092591@dayton.Stanford.EDU>
- Date: Sun, 13 Sep 1992 18:04:17 GMT
- Lines: 26
-
- In article <lma.716092591@dayton.Stanford.EDU> lma@dayton.Stanford.EDU
- (Larry Augustin) writes:
-
- >I know about job control! I'm NOT asking how to use job control! I'm
- >talking about writing a C program that places ITSELF in background.
- >I'm not talking about the user typing ^Z.
- >
- >Please, no more messages telling me how to use ^Z!
- >
- >The consensus seems to be that it can't be done (without forking), as
- >whatever shell exec'd the program will be stuck in a wait(), and could
- >only continue upon death of the child (or some interaction by the
- >user). There would have to be some other convention for the running
- >program to tell the shell to continue.
- >
- >Larry
-
- I seem to remember there was a signal you could send yourself to be
- suspended (this was on MassComp UNIX), but I forget if you could do
- so and still be running. Am I hallucinating?
-
- -Shane
-
- --
- Shane Bouslough | #include <stddisc.h>
- shane@sbcs.sunysb.edu | #include <happy.rhodes>
-