home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!mimsy!afterlife!adm!news
- From: SERRER@odin.nrc.ca (Martin Serrer)
- Newsgroups: comp.sys.sgi
- Subject: pcreatev prototype ???
- Message-ID: <32111@adm.brl.mil>
- Date: 18 Aug 92 19:03:13 GMT
- Sender: news@adm.brl.mil
- Lines: 32
-
- Hi all,
-
- I have a need to fork/kill a small temporary process, and have come up with
- the following simple code.
-
- /*-------------------------------------------------------*/
-
- static int pid;
-
- doWait()
- {
- pid = pcreatev("/usr/people/serrer/test/doWait", NULL);
- }
-
- killWait()
- {
- kill(pid, SIGKILL);
- }
- /*-------------------------------------------------------*/
-
- This works like a charm but the ansi c compiler would like a prototype
- for pcreatev(). Could some kind soul supply me with same?
-
- I've 'grep'ed the /usr/include tree and have come up empty handed. This is
- IRIX 4.0.1
-
- Thanks in advance... Martin
- +-----------------------------------------------------------------------------+
- | Martin Serrer Bldg.M32, Montreal Rd. |
- | 613-993-9442 National Research Council of Canada,|
- | Martin.Serrer@nrc.ca Ottawa, Ontario, Canada K1A-0R6 |
- +------------------- Software Rusts, Rust never Sleeps -----------------------+
-