summaryrefslogtreecommitdiffstats
path: root/src/ifplugd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ifplugd.c')
-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;