System V msg_send interrupted by SIGKILL

view story

http://stackoverflow.com – I have a multi-process application that works like so... There is a parent process. The parent process queries a database to find work, then forks children to process that work. The children communicate back to the parent via System V message queues to indicate they're done with their work. When the parent process picks up that message, it updates the database to indicate that the work is complete. This works okay but I'm struggling with handling the parent process being killed. What happens is the parent receives a SIGINT(from CTRL-C), and then sends SIGKILLs to each of the children. If a (HowTos)