Просмотр исходного кода

move tty change outside OS specific ifdef and use the new TIOCNOTTY test instead

Wichert Akkerman лет назад: 24
Родитель
Сommit
b0a4db5f76
2 измененных файлов с 10 добавлено и 0 удалено
  1. 7 0
      ChangeLog
  2. 3 0
      utils/start-stop-daemon.c

+ 7 - 0
ChangeLog

@@ -1,3 +1,10 @@
+Sat Feb  2 00:18:04 CET 2002 Wichert Akkerman <wakkerma@debian.org>
+
+  * automake/dpkg.m4: add DPKG_CHECK_DEFINE
+  * configure.in: test for TIOCNOTTY in sys/ioctl.h
+  * utils/start-stop-daemon.c: move tty change outside OS specific ifdef
+    and use the new TIOCNOTTY test instead
+
 Fri Feb  1 19:10:02 CET 2002 Wichert Akkerman <wakkerma@debian.org>
 
   * po/ca.po: New Catalan translation

+ 3 - 0
utils/start-stop-daemon.c

@@ -1223,6 +1223,9 @@ main(int argc, char **argv)
 #else
 		 /* now close all extra fds */
 		for (i=getdtablesize()-1; i>=0; --i) close(i);
+#endif
+
+#ifdef HAVE_TIOCNOTTY
 		 /* change tty */
 		fd = open("/dev/tty", O_RDWR);
 		ioctl(fd, TIOCNOTTY, 0);