diff options
| author | forsyth <forsyth@vitanuova.com> | 2011-03-29 08:55:03 +0100 |
|---|---|---|
| committer | forsyth <forsyth@vitanuova.com> | 2011-03-29 08:55:03 +0100 |
| commit | 35a6f3e10aa63aa1ac127c14186949900fe25993 (patch) | |
| tree | fe00f91e4d847dd3f633c707457f89b4291402b4 /lib9/errstr-posix.c | |
| parent | 3a78c580bfacbdc12a08507f98b0dfb3c9b78f94 (diff) | |
20110329-0852
Diffstat (limited to 'lib9/errstr-posix.c')
| -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 |
