Sending signal to own process in RTLinux

Sending signal to own process in RTLinux

Post by michaelche » Wed, 23 Jul 2003 03:37:23


Hi, newsgroup:

I'm wondering if it's possible to send a signal back to current
process (the same process that send the signal). If I raise a signal,
raise() in general is a blocking call and will not return until the
signal has been received. However, the process is occupied by sending
the signal will not be able to call signal handler when the signal has
arrived. In addition, by the time the signal handler (sigsuspend) is
called, it is really dealing the signal that has been delivered
before. Any opinion or help will be appreciated. Thank you.

Mike
 
 
 

Sending signal to own process in RTLinux

Post by avsr » Sun, 10 Aug 2003 05:47:53

I think you can raise the signal from a seperate thread , let the thread block
, do the other jobs from a seperate thread .

Subra