summaryrefslogtreecommitdiff
path: root/sys/src
diff options
context:
space:
mode:
authorAlex Musolino <alex@musolino.id.au>2019-05-20 15:00:14 +0930
committerAlex Musolino <alex@musolino.id.au>2019-05-20 15:00:14 +0930
commitd7aa56c073abea325fb52821b49fa453bacd3922 (patch)
tree1b7b29e541d10147202f4631fd233f7b96634a2f /sys/src
parentc35f95de2ad2d44cb2126363df952c87a334d880 (diff)
upas/fs: remove read timeout via alarm(2) in pop3resp
The alarm note is not handled by upas/fs, so if and when it did fire, the pop3 client process would terminate rendering the entire fs unresponsive.
Diffstat (limited to 'sys/src')
-rw-r--r--sys/src/cmd/upas/fs/pop3.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/src/cmd/upas/fs/pop3.c b/sys/src/cmd/upas/fs/pop3.c
index a835e7d2b..392282383 100644
--- a/sys/src/cmd/upas/fs/pop3.c
+++ b/sys/src/cmd/upas/fs/pop3.c
@@ -89,14 +89,11 @@ pop3resp(Pop *pop)
char *s;
char *p;
- alarm(60*1000);
if((s = Brdstr(&pop->bin, '\n', 0)) == nil){
close(pop->fd);
pop->fd = -1;
- alarm(0);
return "unexpected eof";
}
- alarm(0);
p = s + strlen(s) - 1;
while(p >= s && (*p == '\r' || *p == '\n'))