- Timestamp:
- Aug 5, 2018 1:57:32 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/webservice/vboxweb.cpp
r69749 r73504 922 922 { 923 923 struct timeval timeout; 924 fd_set fds;924 fd_set ReadFds, WriteFds, XcptFds; 925 925 int rv; 926 926 for (;;) … … 928 928 timeout.tv_sec = 60; 929 929 timeout.tv_usec = 0; 930 FD_ZERO(&fds); 931 FD_SET(soap.master, &fds); 932 rv = select((int)soap.master + 1, &fds, &fds, &fds, &timeout); 930 FD_ZERO(&ReadFds); 931 FD_SET(soap.master, &ReadFds); 932 FD_ZERO(&WriteFds); 933 FD_SET(soap.master, &WriteFds); 934 FD_ZERO(&XcptFds); 935 FD_SET(soap.master, &XcptFds); 936 rv = select((int)soap.master + 1, &ReadFds, &WriteFds, &XcptFds, &timeout); 933 937 if (rv > 0) 934 938 break; // work is waiting 935 elseif (rv == 0)939 if (rv == 0) 936 940 continue; // timeout, not necessary to bother gsoap 937 else // r < 0, errno 938 { 939 if (soap_socket_errno(soap.master) == SOAP_EINTR) 940 rv = 0; // re-check if we should terminate 941 break; 942 } 941 // r < 0, errno 942 if (soap_socket_errno(soap.master) == SOAP_EINTR) 943 rv = 0; // re-check if we should terminate 944 break; 943 945 } 944 946 if (rv == 0)
Note:
See TracChangeset
for help on using the changeset viewer.