[openamq-dev] Only a single thread may register signals.
Martin Lucina
mato at imatix.com
Sat Jan 5 12:46:22 CET 2008
sustrik at imatix.com said:
> Yes, I agree. Handling signals in a library seems inappropriate anyway
> (it can mess with the signal handling of the main application).
Agreed.
However, if we remove the signal handling from SMT then we have no way
to do signal handling for SMT-only applications (e.g. amq_server).
I'd suggest a compromise:
- change SMT to not handle any signals by default but keep the option of
doing so
- change the client API to not handle any signals
- change the server code appropriately to handle SIGINT, SIGTERM as it
does now
How does that sound?
-mato
More information about the openamq-dev
mailing list