proc_to_fd
static int proc_to_fd(); /* Takes a pid and returns an fd for its proc */
if (pid != 0 && (fd = proc_to_fd(pid)) == -1) {