summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-03-05 16:06:16 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-03-05 16:06:16 +0000
commit1b9d4ba2d567ded1d026577367aa0e41f998847b (patch)
tree2757415538c1ef4c7a783822ecc1e5fb0a845d3e
parent056c60ec3d3a7b809791ee75e20f97e6ffc9a524 (diff)
downloadrsyslog-1b9d4ba2d567ded1d026577367aa0e41f998847b.tar.gz
rsyslog-1b9d4ba2d567ded1d026577367aa0e41f998847b.tar.xz
rsyslog-1b9d4ba2d567ded1d026577367aa0e41f998847b.zip
fixed sleep call
-rw-r--r--plugins/imgssapi/imgssapi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/imgssapi/imgssapi.c b/plugins/imgssapi/imgssapi.c
index fb80f3e2..95b64200 100644
--- a/plugins/imgssapi/imgssapi.c
+++ b/plugins/imgssapi/imgssapi.c
@@ -448,7 +448,7 @@ OnSessAcceptGSS(tcpsrv_t *pThis, tcps_sess_t **ppSess, int fd)
/* The client might has been interupted after sending
* the data length (4B), give him another chance.
*/
- sleep(1); // TODO: bad, bad, fix...
+ srSleep(1, 0);
do {
ret = recv(fdSess, buf, sizeof (buf), MSG_PEEK);
} while (ret < 0 && errno == EINTR);