]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/conn.c
Use Proc_Close() to remove no longer unused pipes to child processes
[ngircd-alex.git] / src / ngircd / conn.c
index 1a9ac47abcd55bc8d64f2b143ef550b2ae9dc6af..407da1a3b0837ac2bd99c16054175a4b4070e006 100644 (file)
@@ -2107,6 +2107,7 @@ cb_Connect_to_Server(int fd, UNUSED short events)
 
        /* Read result from pipe */
        len = Proc_Read(&Conf_Server[i].res_stat, dest_addrs, sizeof(dest_addrs));
+       Proc_Close(&Conf_Server[i].res_stat);
        if (len == 0) {
                /* Error resolving hostname: reset server structure */
                Conf_Server[i].conn_id = NONE;
@@ -2166,6 +2167,7 @@ cb_Read_Resolver_Result( int r_fd, UNUSED short events )
 
        /* Read result from pipe */
        len = Proc_Read(&My_Connections[i].proc_stat, readbuf, sizeof readbuf -1);
+       Proc_Close(&My_Connections[i].proc_stat);
        if (len == 0)
                return;