[Pkg-wmaker-commits] [wmbiff] 11/16: fix some minor damage when select is interrupted (EINTR)
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Thu Aug 20 03:02:48 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to tag wmbiff_0_4_13
in repository wmbiff.
commit 85c58fa4c66128fa54272f72828dfc05d0c6b25d
Author: bluehal <bluehal>
Date: Tue Jan 21 08:56:41 2003 +0000
fix some minor damage when select is interrupted (EINTR)
---
wmbiff/tlsComm.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/wmbiff/tlsComm.c b/wmbiff/tlsComm.c
index 0a294f0..299c8a4 100644
--- a/wmbiff/tlsComm.c
+++ b/wmbiff/tlsComm.c
@@ -108,7 +108,9 @@ static int wait_for_it(int sd, int timeoutseconds)
tv.tv_usec = 0;
FD_ZERO(&readfds);
FD_SET(sd, &readfds);
- ready_descriptors = select(sd + 1, &readfds, NULL, NULL, &tv);
+ do {
+ ready_descriptors = select(sd + 1, &readfds, NULL, NULL, &tv);
+ } while (ready_descriptors == -1 && errno == EINTR);
if (ready_descriptors == 0) {
DMA(DEBUG_INFO,
"select timed out after %d seconds on socket: %d\n",
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmbiff.git
More information about the Pkg-wmaker-commits
mailing list