[prev in list] [next in list] [prev in thread] [next in thread]
List: stunnel-users
Subject: [stunnel-users] Re: service reconfiguration by SIGHUP (updated
From: "Matthew Eaton" <stunnel () divinehawk ! com>
Date: 2006-12-15 0:05:48
Message-ID: 7c06f4940612141605j500b93cahc107dade92067ad8 () mail ! gmail ! com
[Download RAW message or body]
Sorry for yet another correction. This change is also needed otherwise
you'll get 100% cpu usage. The original code was not designed to
handle timeouts correctly.
Matt
network.c 2006-12-14 19:02:37.000000000 -0500
@@ -260,7 +260,7 @@
do { /* skip "Interrupted system call" errors */
retry=0;
retval=poll(fds->ufds, fds->nfds, sec<0 ? -1 : 1000*sec+msec);
- if(sec<0 && retval>0 && s_poll_canread(fds, signal_pipe[0])) {
+ if(retval>0 && s_poll_canread(fds, signal_pipe[0])) {
signal_pipe_empty(); /* no timeout -> main loop */
retry=1;
}
_______________________________________________
stunnel-users mailing list
stunnel-users@mirt.net
http://stunnel.mirt.net/mailman/listinfo/stunnel-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic