diff options
Diffstat (limited to 'lib9')
| -rw-r--r-- | lib9/errstr-posix.c | 8 |
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 |
