diff options
author | Andi Gutmans <andi@php.net> | 2000-02-16 13:34:07 +0000 |
---|---|---|
committer | Andi Gutmans <andi@php.net> | 2000-02-16 13:34:07 +0000 |
commit | d66d7c6e3af510fd3856c05644e50bd44ca6c9db (patch) | |
tree | 56103a1d4e99fd3b3c5e70dfb463ef33ee4380d2 /sapi/isapi/php4isapi.c | |
parent | af220872b921de91158c158d7641ab1d8ab5ace2 (diff) | |
download | php-git-d66d7c6e3af510fd3856c05644e50bd44ca6c9db.tar.gz |
- In IIS ISAPI when the user presses the STOP button while the script is
running make sure it stops gracefully. Before it stuck the server.
Diffstat (limited to 'sapi/isapi/php4isapi.c')
-rw-r--r-- | sapi/isapi/php4isapi.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sapi/isapi/php4isapi.c b/sapi/isapi/php4isapi.c index 24e8a96b2a..72a7bec1c0 100644 --- a/sapi/isapi/php4isapi.c +++ b/sapi/isapi/php4isapi.c @@ -136,9 +136,12 @@ static int sapi_isapi_ub_write(const char *str, uint str_length) DWORD num_bytes = str_length; LPEXTENSION_CONTROL_BLOCK ecb; SLS_FETCH(); + ELS_FETCH(); ecb = (LPEXTENSION_CONTROL_BLOCK) SG(server_context); - ecb->WriteClient(ecb->ConnID, (char *) str, &num_bytes, HSE_IO_SYNC ); + if (ecb->WriteClient(ecb->ConnID, (char *) str, &num_bytes, HSE_IO_SYNC ) == FALSE) { + longjmp(EG(bailout), 1); + } return num_bytes; } |