Hi to all,
To Mara and sudhir_pandey...Many thx for the examples. They are helping me understand sigaction better.
However, i'm still facing some problems:
1) How can make a call to run Program2.c from inside Program1.c?
2) Program1 and Program2 are two separate C programs - Program1 is in kernel whereas Program is a user space program that I've written. How can I send a signal from program1 to Program2? Do I get the pid of Program2 when it is run and then issue a kill with the pid as argument? How do I get the pid of Program2 using C code? Is there a function where you provide the name of the .c file and it will return the pid?
Any input will be greatly appreciated as always...
Warm regards to you all,
Visham
|