From d166b798529dab4538054d0b68797c0cc17f34de Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 28 Mar 2012 12:48:00 +1100 Subject: build: Remove sys_open wrapper --- lib/util/become_daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/util') diff --git a/lib/util/become_daemon.c b/lib/util/become_daemon.c index 92a75862bd..373927ca6e 100644 --- a/lib/util/become_daemon.c +++ b/lib/util/become_daemon.c @@ -85,7 +85,7 @@ _PUBLIC_ void become_daemon(bool do_fork, bool no_process_group, bool log_stdout if (!no_process_group) setsid(); #elif defined(TIOCNOTTY) if (!no_process_group) { - int i = sys_open("/dev/tty", O_RDWR, 0); + int i = open("/dev/tty", O_RDWR, 0); if (i != -1) { ioctl(i, (int) TIOCNOTTY, (char *)0); close(i); -- cgit