mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-14 20:33:48 +00:00
Fixed bug with HUP signal going into accept()
SVN revision: 1068
This commit is contained in:
parent
558e0f9d13
commit
44ac6754be
@ -6,6 +6,9 @@
|
|||||||
Contents: Web server program for Electronic Logbook ELOG
|
Contents: Web server program for Electronic Logbook ELOG
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.466 2004/09/09 19:35:34 midas
|
||||||
|
Fixed bug with HUP signal going into accept()
|
||||||
|
|
||||||
Revision 1.465 2004/09/08 14:41:23 midas
|
Revision 1.465 2004/09/08 14:41:23 midas
|
||||||
Fixed crash on deleting entries during synchronization
|
Fixed crash on deleting entries during synchronization
|
||||||
|
|
||||||
@ -19890,6 +19893,7 @@ void server_loop(void)
|
|||||||
if (_abort)
|
if (_abort)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
if (status == 0) { // if no HUP signal is received
|
||||||
if (FD_ISSET(lsock, &readfds)) {
|
if (FD_ISSET(lsock, &readfds)) {
|
||||||
len = sizeof(acc_addr);
|
len = sizeof(acc_addr);
|
||||||
_sock = accept(lsock, (struct sockaddr *) &acc_addr, &len);
|
_sock = accept(lsock, (struct sockaddr *) &acc_addr, &len);
|
||||||
@ -20582,6 +20586,7 @@ void server_loop(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
#ifdef OS_WINNT
|
#ifdef OS_WINNT
|
||||||
|
|
||||||
/* under windows, check if configuration changed (via stat()) once each access */
|
/* under windows, check if configuration changed (via stat()) once each access */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user