home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.programmer
- Path: sparky!uunet!caen!batcomputer!theory.TC.Cornell.EDU!mdw
- From: mdw@theory.TC.Cornell.EDU (Matt Welsh)
- Subject: Re: Creating a background process from within C prog
- Message-ID: <1992Nov12.003035.24322@tc.cornell.edu>
- Sender: news@tc.cornell.edu
- Nntp-Posting-Host: theory.tc.cornell.edu
- Organization: Cornell Theory Center
- References: <BwsyCt.9Gx@acsu.buffalo.edu> <HUANG1.92Nov10171831@husc10.harvard.edu> <1992Nov11.032950.23086@leland.Stanford.EDU>
- Date: Thu, 12 Nov 1992 00:30:35 GMT
- Lines: 16
-
- In article <1992Nov11.032950.23086@leland.Stanford.EDU> dkeisen@leland.Stanford.EDU (Dave Eisen) writes:
- >If you're going to use system, you might as well take the shell
- >you spawn for all it's worth and write:
- >
- > system ("ls > /tmp/myfile &");
-
- Um, why? The process running the system is fork()ed from the parent, which
- isn't neccesarily wait()ing for the child to finish. That won't buy you
- much (unless I'm very confused :)).
-
- mdw
-
- --
- Matt Welsh mdw@tc.cornell.edu +1 607 253 2737
- Systems Programmer, Cornell Theory Center
- "She's like jelly roll, like sculpture!"
-