It allows para_server to close the write end of the signal pipe
before afs is started.
}
alarm(ALARM_TIMEOUT);
close_listed_fds();
- close(sockfd); /* child doesn't need the listener */
+ para_signal_shutdown();
/*
* put info on who we are serving into argv[0] to make
* client ip visible in top/ps
}
return r < 0 && (errno != EAGAIN)? 0 : -E_SIGNAL_READ;
}
+
+void para_signal_shutdown(void)
+{
+ close(signal_pipe[1]);
+}
void para_reap_children(void);
int para_reap_child(pid_t *pid);
int para_next_signal(void);
+void para_signal_shutdown(void);