summaryrefslogtreecommitdiff
path: root/lib/util/become_daemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/util/become_daemon.c')
-rw-r--r--lib/util/become_daemon.c2
1 files changed, 1 insertions, 1 deletions
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);