Advertisement

raise() and signal()

Started by November 30, 2003 08:35 AM
2 comments, last by Damage_Incorporated 20 years, 10 months ago
ok, I''ve set up some custum signal handlers for SIGINT and SIGSEGV in my program(mud server actually) band i''ve been playing around some with them, now there are 32 defined signals and it accepts signals up to 64. so does that mean that they planned ahead or that you can implement your own custom signals? perhaps a bad idea to mess with the signals if you want to be compatible with the future anyone know if this is a good or bad idea? - Damage Inc.
Use them at your own risk.

and why would you need anything other than 2 user defined signals, anyway?

sounds like you''re trying to use signals to do something something else is better suited for.
Advertisement
SIGUSR1 and SIGUSR2 are defined for a reason. If you have to use signals to communicate between processes, use those two. If you need more than two, then you should probably be using a different IPC method anyway.
ok, thanks

This topic is closed to new replies.

Advertisement