home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / ultrix / 8182 < prev    next >
Encoding:
Text File  |  1992-11-09  |  1.4 KB  |  48 lines

  1. Newsgroups: comp.unix.ultrix
  2. Path: sparky!uunet!ukma!darwin.sura.net!zaphod.mps.ohio-state.edu!menudo.uh.edu!jane.uh.edu!st1oc
  3. From: st1oc@jane.uh.edu (Satish, Kumar S.)
  4. Subject: SIGNAL HANDLING in Ultrix : followup
  5. Message-ID: <9NOV199210573962@jane.uh.edu>
  6. News-Software: VAX/VMS VNEWS 1.41    
  7. Sender: usenet@menudo.uh.edu (USENET News System)
  8. Nntp-Posting-Host: jane.uh.edu
  9. Organization: University of Houston
  10. Date: Mon, 9 Nov 1992 16:57:00 GMT
  11. Lines: 35
  12.  
  13. Hi netters,
  14. I received quite a number of replies for my 
  15. query. ( CAN A PARENT GET the pid of a child who sent a signal
  16. to it? ). I sincerely thank all of you who responded to my
  17. query.
  18. Well, we cannot do that using signal().
  19.  
  20. Also, in my case, the child does not terminate.SO, I cannot use
  21. wait3() system call.
  22.  
  23. My situation is detailed as follows: 
  24. The child sends a SIGUSR1 signal to its
  25. parent [ kill(parent_pid, SIGUSR1) ] but does not terminate. 
  26. The parent must receive this signal and know the pid of the child
  27. who sent the signal.
  28.  
  29. One of them suggested that a pipe can be used separately used for this
  30. so that the parent can get the pid of the child from there.
  31.  
  32. I sincerely want to know if we have some other mechanism( or system 
  33. call) by which we can accomplish the same, in a single operation,
  34. for instance .
  35.  
  36. Thanking you with anticipation,
  37.  
  38.  
  39. --truly yours,
  40. KUMAR S. SATHISH *:)
  41. Dept. of Comp.Sci
  42. U.Houston.
  43.  
  44. pl. e-mail responses to : st1oc@jetson.uh.edu
  45.               sathish@cs.uh.edu
  46.  
  47. Thanks...
  48.