| 196 | } |
| 197 | |
| 198 | static int |
| 199 | put_pid(int fd, pid_t pid) |
| 200 | { |
| 201 | char buf[32]; |
| 202 | int len; |
| 203 | |
| 204 | len = sprintf (buf, "%10d\n", (int)pid); |
| 205 | return write (fd, buf, (size_t)len) == len; |
| 206 | } |
| 207 | |
| 208 | static pid_t |
| 209 | get_pid(int fd, int *err) |
no test coverage detected