mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-10 18:23:28 +00:00
Fixed bug with select return status
SVN revision: 1072
This commit is contained in:
parent
3ddb5fd06c
commit
31e7e8fed9
@ -6,6 +6,9 @@
|
|||||||
Contents: Web server program for Electronic Logbook ELOG
|
Contents: Web server program for Electronic Logbook ELOG
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.468 2004/09/10 14:06:42 midas
|
||||||
|
Fixed bug with select return status
|
||||||
|
|
||||||
Revision 1.467 2004/09/10 11:21:34 midas
|
Revision 1.467 2004/09/10 11:21:34 midas
|
||||||
Version 2.5.4-3
|
Version 2.5.4-3
|
||||||
|
|
||||||
@ -19896,7 +19899,7 @@ void server_loop(void)
|
|||||||
if (_abort)
|
if (_abort)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
if (status == 0) { // if no HUP signal is received
|
if (status != -1) { // 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);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user