Toward race-free process signaling
Toward race-free process signaling
Posted Dec 6, 2018 20:07 UTC (Thu) by rweikusat2 (subscriber, #117920)In reply to: Toward race-free process signaling by jspenguin
Parent article: Toward race-free process signaling
There's a race here nevertheless: The pid of a process one wants to send a signal to can only be known at some time x + n, x being the time when fork returned and n the delay until the pid was communicated to the process desiring to use it. There's no way this process can determine if the pid is still used by the other process it wanted to send a signal to by the time it tries to use it, be it roundabout via proc or directly via kill.