in reply to Signal handling in embedded Perl ?
This scheme works even with one set of signal handlers which don't play nicely, if you can arrange for those to be installed first, all the chain-aware ones can be installed afterwards and the unfriendly ones can be called at the end of the chain.
Sorry this is so vague, but routines for managing these things generally return the previous signal handler in order for you to do this. The old-style 'signal()' returns the previous handler, the POSIX sigaction takes an 'oldact' struct pointer to copy in the previous handling details (if requested)).
Or are you saying that your platform lacks signal or sigaction? If so, can you mock up an equivalent using your platform's primitives?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Signal handling in embedded Perl ?
by jdrago_999 (Hermit) on Nov 21, 2006 at 15:16 UTC | |
by jbert (Priest) on Nov 21, 2006 at 16:19 UTC |