| 67 | |
| 68 | |
| 69 | Future<Option<int>> ReaperProcess::reap(pid_t pid) |
| 70 | { |
| 71 | // Check to see if this pid exists. |
| 72 | if (os::exists(pid)) { |
| 73 | Owned<Promise<Option<int>>> promise(new Promise<Option<int>>()); |
| 74 | promises.put(pid, promise); |
| 75 | return promise->future(); |
| 76 | } else { |
| 77 | return None(); |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | |
| 82 | void ReaperProcess::initialize() |