summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-03-15 15:36:10 +0000
committerLennart Poettering <lennart@poettering.net>2004-03-15 15:36:10 +0000
commitbdaa1b29ccc4501555f2e68130ea7178bde90f12 (patch)
treeaf075843568b440b936a15ead364131bb1236242
parent52194f80b8c4af4843795cf90e05a5d4b4fa4a66 (diff)
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
-rw-r--r--src/ifplugd.c2
1 files changed, 1 insertions, 1 deletions
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;