void process_detach_peer(struct process *process, struct peer *peer) { int fd; if (!process_del_ref(process)) /* process freed */ return; for (fd = 0; fd < process->nfiles; fd++) { /* * XXX This shouldn't be done, * if we'll support gfmd reconnection. */ process_close_file(process, peer, fd); } }
void close (int fd) { process_close_file (fd); }