summaryrefslogtreecommitdiff
path: root/open.c
diff options
context:
space:
mode:
authortgoodwin <tgoodwin>1998-10-21 12:54:02 +0000
committerToby Goodwin <toby@paccrat.org>2015-05-16 21:23:11 +0100
commit281a824241d21cd0296067ae06428cb49ed1dd1a (patch)
treeb8cf614785f447280f34e8155534131614502619 /open.c
parentb45bc7e88f3468121d8be516dc861e6fe45ab720 (diff)
use rc_error instead of panicking
(it's hard to know what to do here)
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);
}
}
-