diff options
| author | tgoodwin <tgoodwin> | 1998-10-21 12:54:02 +0000 |
|---|---|---|
| committer | Toby Goodwin <toby@paccrat.org> | 2015-05-16 21:23:11 +0100 |
| commit | 281a824241d21cd0296067ae06428cb49ed1dd1a (patch) | |
| tree | b8cf614785f447280f34e8155534131614502619 /open.c | |
| parent | b45bc7e88f3468121d8be516dc861e6fe45ab720 (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.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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); } } - |