summaryrefslogtreecommitdiff
path: root/lib9/errstr-posix.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib9/errstr-posix.c')
-rw-r--r--lib9/errstr-posix.c8
1 files changed, 7 insertions, 1 deletions
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