diff options
author | Florian Obser <florian@cvs.openbsd.org> | 2013-10-21 18:17:59 +0000 |
---|---|---|
committer | Florian Obser <florian@cvs.openbsd.org> | 2013-10-21 18:17:59 +0000 |
commit | c07f0430a20d4edc0c5604c0d1bb7a874ae7b6eb (patch) | |
tree | 4cb35eb664de08c3c284787cdb5f9787139e6fd0 /usr.sbin/slowcgi | |
parent | 522dcce42fb40b9212c8ee0e04468026cdb75742 (diff) |
Check for EINTR, too.
pointed out by deraadt@
Diffstat (limited to 'usr.sbin/slowcgi')
-rw-r--r-- | usr.sbin/slowcgi/slowcgi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/slowcgi/slowcgi.c b/usr.sbin/slowcgi/slowcgi.c index a7122dba9b0..a0c0aecdd8d 100644 --- a/usr.sbin/slowcgi/slowcgi.c +++ b/usr.sbin/slowcgi/slowcgi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: slowcgi.c,v 1.21 2013/10/21 18:16:28 florian Exp $ */ +/* $OpenBSD: slowcgi.c,v 1.22 2013/10/21 18:17:58 florian Exp $ */ /* * Copyright (c) 2013 David Gwynne <dlg@openbsd.org> * Copyright (c) 2013 Florian Obser <florian@openbsd.org> @@ -537,7 +537,7 @@ slowcgi_response(int fd, short events, void *arg) n = write(fd, resp->data + resp->data_pos, resp->data_len); if (n == -1) { - if (errno == EAGAIN) + if (errno == EAGAIN || errno == EINTR) return; cleanup_request(c); return; @@ -998,7 +998,7 @@ script_out(int fd, short events, void *arg) } n = write(fd, node->data + node->data_pos, node->data_len); if (n == -1) { - if (errno == EAGAIN) + if (errno == EAGAIN || errno == EINTR) return; event_del(&c->script_stdin_ev); return; |