1
0
mirror of https://github.com/osmarks/ngircd.git synced 2025-01-19 12:02:52 +00:00

Update comments: subprocesses not only can be resolver processes

This commit is contained in:
Alexander Barton 2010-05-21 23:44:20 +02:00
parent 89e73ad4b4
commit 60f5dd5b29

View File

@ -756,7 +756,8 @@ Conn_Handler(void)
continue; /* TLS/SSL layer needs to write data; deal with this first */ continue; /* TLS/SSL layer needs to write data; deal with this first */
#endif #endif
if (Proc_InProgress(&My_Connections[i].proc_stat)) { if (Proc_InProgress(&My_Connections[i].proc_stat)) {
/* Wait for completion of resolver sub-process ... */ /* Wait for completion of forked subprocess
* and ignore the socket in the meantime ... */
io_event_del(My_Connections[i].sock, io_event_del(My_Connections[i].sock,
IO_WANTREAD); IO_WANTREAD);
continue; continue;
@ -772,6 +773,7 @@ Conn_Handler(void)
IO_WANTREAD); IO_WANTREAD);
continue; continue;
} }
io_event_add(My_Connections[i].sock, IO_WANTREAD); io_event_add(My_Connections[i].sock, IO_WANTREAD);
} }
@ -1073,7 +1075,7 @@ Conn_Close( CONN_ID Idx, const char *LogMsg, const char *FwdMsg, bool InformClie
in_k, out_k); in_k, out_k);
} }
/* cancel running resolver */ /* Kill possibly running subprocess */
if (Proc_InProgress(&My_Connections[Idx].proc_stat)) if (Proc_InProgress(&My_Connections[Idx].proc_stat))
Proc_Kill(&My_Connections[Idx].proc_stat); Proc_Kill(&My_Connections[Idx].proc_stat);