diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2011-07-28 12:27:55 -0700 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2011-07-28 12:42:39 -0700 |
commit | 97795532214d4ce09159e7cda42c1a55dd13c5f7 (patch) | |
tree | 593bfbab91f3d0a61a8cdfa3b59f2132deb21dee /lib/http_ntlm.c | |
parent | 435e2bc75797b14bc27dc4048b7fa1f3caa446f1 (diff) | |
download | curl-97795532214d4ce09159e7cda42c1a55dd13c5f7.tar.gz |
Give the NTLM SSO helper a moment to cleanly shut down if needed
Diffstat (limited to 'lib/http_ntlm.c')
-rw-r--r-- | lib/http_ntlm.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/http_ntlm.c b/lib/http_ntlm.c index 79481a46d..4163b8245 100644 --- a/lib/http_ntlm.c +++ b/lib/http_ntlm.c @@ -51,6 +51,7 @@ #include "urldata.h" #include "non-ascii.h" /* for Curl_convert_... prototypes */ #include "sendf.h" +#include "select.h" #include "rawstr.h" #include "curl_base64.h" #include "http_ntlm.h" @@ -694,10 +695,14 @@ static void sso_ntlm_close(struct connectdata *conn) case 0: kill(conn->pid, SIGTERM); break; + case 1: + /* Give the process another moment to shut down cleanly before + bringing down the axe */ + Curl_wait_ms(1); + break; case 2: kill(conn->pid, SIGKILL); break; - case 1: case 3: break; } |