| 240 | } |
| 241 | |
| 242 | static Value ProcessWaitPIDImpl(const Dictionary::Ptr& request) |
| 243 | { |
| 244 | pid_t pid = request->Get("pid"); |
| 245 | |
| 246 | int status; |
| 247 | int rc = waitpid(pid, &status, 0); |
| 248 | |
| 249 | Dictionary::Ptr response = new Dictionary({ |
| 250 | { "status", status }, |
| 251 | { "rc", rc } |
| 252 | }); |
| 253 | |
| 254 | return response; |
| 255 | } |
| 256 | |
| 257 | static void ProcessHandler() |
| 258 | { |