From bdaa1b29ccc4501555f2e68130ea7178bde90f12 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 15 Mar 2004 15:36:10 +0000 Subject: don't make tty1 a controlling tty for beeping git-svn-id: file:///home/lennart/svn/public/ifplugd/trunk@104 2bf48fe7-cfc1-0310-909f-d9042e1e0fef --- src/ifplugd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifplugd.c b/src/ifplugd.c index 943b3fd..28f1ce5 100644 --- a/src/ifplugd.c +++ b/src/ifplugd.c @@ -99,7 +99,7 @@ void beep(int b) { if (!use_beep) return; - if ((fd = open("/dev/tty1", O_WRONLY)) < 0) { + if ((fd = open("/dev/tty1", O_WRONLY|O_NOCTTY)) < 0) { use_beep = 0; daemon_log(LOG_WARNING, "Could not open /dev/tty, cannot beep."); goto finish; -- cgit