commit 281a824241d21cd0296067ae06428cb49ed1dd1a
parent b45bc7e88f3468121d8be516dc861e6fe45ab720
Author: tgoodwin <tgoodwin>
Date: Wed, 21 Oct 1998 12:54:02 +0000
use rc_error instead of panicking
(it's hard to know what to do here)
Diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git 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);
}
}
-