News for hackers. Stuff that matters.
Re:IPC – Unix Signals by Joker_vD on Monday October 09, 2023 @12:54PM (#37822416)
> We can start our processes with the same process groups and send signals to each other using kill(0, signum). With this, there’s no need for pid exchange, and IPC can be carried out in blissful pids ignorance.

Just make sure your processes don't launch any other processes not written by you: you don't know who else might be sneaky enough to use this method. Compounded by the fact that Linux process groups don't nest, this leads to very "funny" debugging sessions, when signals not supposed to arrive suddenly do or the signals that are supposed to arrive don't.

There are no comments on this comment yet.