[Ilugc] Signals!!

  • From: raja.mallik@xxxxxxxxxxx (Raja Mallik)
  • Date: Thu Jun 2 15:21:50 2005

Hi all, 

I have a problem in sending a signals to a process which I created
through another program.

Problem defn:

I have 2 program "sig1.c" and "sig2.c". I want to create the executable
process of sig2.c while executing sig1.c output and I implemented  
in sig1.c with this call

system(sig2 &);  /* tried ecexlp also no success */ 

After executing 

#./sig1

#ps -ax shows both the process,  both the process(sig1 and sig2 with
different PID) are created. 

Here if I send signal "kill -SIGUSR1 to both the PID , only sig1 is able
to recieve not sig2.( like I am printing in a file some printf
statement)

I want signal to reach sig2 also..but its not happening...
Any pointers!

regards
Raja

Other related posts: