Toward race-free process signaling
Toward race-free process signaling
Posted Dec 7, 2018 8:20 UTC (Fri) by Cyberax (✭ supporter ✭, #52523)In reply to: Toward race-free process signaling by epa
Parent article: Toward race-free process signaling
This won't work. Or more precisely, it'll have all the same drawbacks.
Consider the current use-case:
- list processes
- get process pid
- kill process by pid
The new use-case will be:
- list processes
- get process pid
- get long pid by pid
- kill process by long pid
The race condition is still there. You'll need to fix all the APIs to use long pids in the first place.