| 804 | Otherwise, return false. */ |
| 805 | |
| 806 | static bool |
| 807 | delete_proc (pid_t pid) |
| 808 | { |
| 809 | struct tempnode test; |
| 810 | |
| 811 | test.pid = pid; |
| 812 | struct tempnode *node = hash_remove (proctab, &test); |
| 813 | if (! node) |
| 814 | return false; |
| 815 | node->state = REAPED; |
| 816 | return true; |
| 817 | } |
| 818 | |
| 819 | /* Remove PID from the process table, and wait for it to exit if it |
| 820 | hasn't already. */ |