1
0
mirror of https://github.com/osmarks/ngircd.git synced 2024-12-12 18:00:28 +00:00

Don't Proc_Kill() childs after Proc_Read(): done there already.

This commit is contained in:
Alexander Barton 2010-07-13 22:29:06 +02:00
parent 6131822af6
commit 9cd3494de9
2 changed files with 2 additions and 3 deletions

View File

@ -847,9 +847,6 @@ cb_Read_Auth_Result(int r_fd, UNUSED short events)
if (len == 0)
return;
/* Make sure authenticator sub-process is dead now ... */
Proc_Kill(proc);
if (len != sizeof(result)) {
Log(LOG_CRIT, "Auth: Got malformed result!");
Reject_Client(client);

View File

@ -119,6 +119,8 @@ Proc_GenericSignalHandler(int Signal)
/**
* Read bytes from a pipe of a forked child process.
* In addition, this function makes sure that the child process is dead
* after all data has been read or a fatal error occurred.
*/
GLOBAL size_t
Proc_Read(PROC_STAT *proc, void *buffer, size_t buflen)