home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / sgi / 12555 < prev    next >
Encoding:
Internet Message Format  |  1992-08-18  |  1.2 KB

  1. Path: sparky!uunet!dtix!mimsy!afterlife!adm!news
  2. From: SERRER@odin.nrc.ca (Martin Serrer)
  3. Newsgroups: comp.sys.sgi
  4. Subject: pcreatev prototype ???
  5. Message-ID: <32111@adm.brl.mil>
  6. Date: 18 Aug 92 19:03:13 GMT
  7. Sender: news@adm.brl.mil
  8. Lines: 32
  9.  
  10. Hi all,
  11.  
  12.   I have a need to fork/kill a small temporary process, and have come up with
  13. the following simple code.
  14.  
  15. /*-------------------------------------------------------*/
  16.  
  17. static int pid;
  18.  
  19. doWait()
  20. {
  21.     pid = pcreatev("/usr/people/serrer/test/doWait", NULL);
  22. }
  23.  
  24. killWait()
  25. {
  26.     kill(pid, SIGKILL);
  27. }
  28. /*-------------------------------------------------------*/
  29.  
  30.   This works like a charm but the ansi c compiler would like a prototype
  31. for pcreatev(). Could some kind soul supply me with same?
  32.  
  33.   I've 'grep'ed the /usr/include tree and have come up empty handed. This is
  34. IRIX 4.0.1
  35.  
  36.   Thanks in advance... Martin
  37. +-----------------------------------------------------------------------------+
  38. | Martin Serrer                           Bldg.M32,  Montreal Rd.             |
  39. | 613-993-9442                            National Research Council of Canada,|
  40. | Martin.Serrer@nrc.ca                    Ottawa,  Ontario,  Canada  K1A-0R6  |
  41. +------------------- Software Rusts, Rust never Sleeps -----------------------+
  42.