home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.ultrix
- Path: sparky!uunet!ukma!darwin.sura.net!zaphod.mps.ohio-state.edu!menudo.uh.edu!jane.uh.edu!st1oc
- From: st1oc@jane.uh.edu (Satish, Kumar S.)
- Subject: SIGNAL HANDLING in Ultrix : followup
- Message-ID: <9NOV199210573962@jane.uh.edu>
- News-Software: VAX/VMS VNEWS 1.41
- Sender: usenet@menudo.uh.edu (USENET News System)
- Nntp-Posting-Host: jane.uh.edu
- Organization: University of Houston
- Date: Mon, 9 Nov 1992 16:57:00 GMT
- Lines: 35
-
- Hi netters,
- I received quite a number of replies for my
- query. ( CAN A PARENT GET the pid of a child who sent a signal
- to it? ). I sincerely thank all of you who responded to my
- query.
- Well, we cannot do that using signal().
-
- Also, in my case, the child does not terminate.SO, I cannot use
- wait3() system call.
-
- My situation is detailed as follows:
- The child sends a SIGUSR1 signal to its
- parent [ kill(parent_pid, SIGUSR1) ] but does not terminate.
- The parent must receive this signal and know the pid of the child
- who sent the signal.
-
- One of them suggested that a pipe can be used separately used for this
- so that the parent can get the pid of the child from there.
-
- I sincerely want to know if we have some other mechanism( or system
- call) by which we can accomplish the same, in a single operation,
- for instance .
-
- Thanking you with anticipation,
-
-
- --truly yours,
- KUMAR S. SATHISH *:)
- Dept. of Comp.Sci
- U.Houston.
-
- pl. e-mail responses to : st1oc@jetson.uh.edu
- sathish@cs.uh.edu
-
- Thanks...
-