home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / perl / 7010 < prev    next >
Encoding:
Text File  |  1992-11-17  |  1.3 KB  |  29 lines

  1. Newsgroups: comp.lang.perl
  2. Path: sparky!uunet!panther!mothost!schbbs!mmuegel
  3. From: mmuegel@next3.corp.mot.com (Michael S. Muegel)
  4. Subject: How to check if a given process ID is still around?
  5. Reply-To: mmuegel@mot.com
  6. Organization: Corporate Information Office, Schaumburg, Illinois, Motorola, Inc.
  7. Date: Tue, 17 Nov 1992 00:06:24 GMT
  8. Message-ID: <1992Nov17.000624.21281@schbbs.mot.com>
  9. Sender: news@schbbs.mot.com (Net News)
  10. Nntp-Posting-Host: cssmsm.corp.mot.com
  11. Lines: 16
  12.  
  13. Is there way (not using ps(1)) to see if a given PID is active? I am writing 
  14. a scheduler that spawns children to performan various tasks and I want the 
  15. scheduler to know if the child has quit. This way I will never run two of 
  16. the same child "modules" simulataneously. I know I could use IPC but the 
  17. PID trick would be an easy kludge.
  18.  
  19. Thanks!
  20. -Mike
  21.  
  22. -- 
  23. +----------------------------------------------------------------------------+
  24. | Michael S. Muegel                  | Internet:    mmuegel@mot.com          |
  25. | UNIX Applications Startup Group    | Moto X.400:  X10090                   |
  26. | Corporate Information Office       | Voice:       (708) 576-0507           |
  27. | Motorola, Inc.                     | ... these are my opinions, honest ... |
  28. +----------------------------------------------------------------------------+
  29.