From 35a6f3e10aa63aa1ac127c14186949900fe25993 Mon Sep 17 00:00:00 2001 From: forsyth Date: Tue, 29 Mar 2011 08:55:03 +0100 Subject: 20110329-0852 --- lib9/errstr-posix.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lib9/errstr-posix.c') diff --git a/lib9/errstr-posix.c b/lib9/errstr-posix.c index eacc7754..b7c792f2 100644 --- a/lib9/errstr-posix.c +++ b/lib9/errstr-posix.c @@ -23,7 +23,13 @@ werrstr(char *fmt, ...) void oserrstr(char *buf, uint nerr) { - utfecpy(buf, buf+nerr, strerror(errno)); + char *s; + + if(errno != EINTR) + s = strerror(errno); + else + s = "interrupted"; + utfecpy(buf, buf+nerr, s); } int -- cgit v1.2.3