summaryrefslogtreecommitdiff
path: root/open.c
diff options
context:
space:
mode:
Diffstat (limited to 'open.c')
-rw-r--r--open.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/open.c b/open.c
index 137cb1d..68b1a91 100644
--- a/open.c
+++ b/open.c
@@ -32,14 +32,13 @@ extern void makenonblock(int fd) {
if ((flags = fcntl(fd, F_GETFL)) == -1) {
uerror("fcntl");
- exit(1);
+ rc_error(NULL);
}
if (! (flags & O_NONBLOCK))
panic("not O_NONBLOCK");
flags &= ~O_NONBLOCK;
if (fcntl(fd, F_SETFL, (long) flags) == -1) {
uerror("fcntl");
- exit(1);
+ rc_error(NULL);
}
}
-