Most systems I've used _seemed_ to avoid reusing a PID at least for a little while. If this is true and your find/kill sequence is short enough, this should get you 99.99% there.
If you have root priviledge and the process you are trying to kill is owned by a non-root user, you could setuid to the user and then perform the kill. Of course this won't help if the same user gets the reused PID quickly enough.
In reply to Re: atomic operations
by bluto
in thread atomic operations
by kcella
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |