Get rid of hand-rolled closefrom(3).
This commit is contained in:
parent
ab05568beb
commit
587250b286
@ -233,8 +233,7 @@ main(int argc, char *argv[])
|
||||
|
||||
setproctitle("-%s", getprogname());
|
||||
|
||||
for (cnt = getdtablesize(); cnt > 2; cnt--)
|
||||
(void)close(cnt);
|
||||
closefrom(3);
|
||||
|
||||
/*
|
||||
* Get current TTY
|
||||
|
Loading…
Reference in New Issue
Block a user