1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 12kfreebsd_ctty.dpatch by <hesso@pool.math.tu-berlin.de>
4
## DP: See inline documentation.
7
--- screen-4.0.3.orig/tty.sh 2009-04-10 18:15:51.923805915 +0200
8
+++ screen-4.0.3/tty.sh 2009-04-10 18:17:56.043804602 +0200
13
- /* The next lines should be obsolete. Can anybody check if they
14
- * are really needed on the BSD platforms?
16
- * this is to avoid the message:
17
- * fgtty: Not a typewriter (25)
19
+ * Under BSD we have to set the controlling terminal again explicitly.
21
-# if defined(__osf__) || (BSD >= 199103) || defined(ISC)
23
- setsid(); /* should be already done */
25
+# if defined(__FreeBSD_kernel__) && defined(TIOCSCTTY)
26
ioctl(fd, TIOCSCTTY, (char *)0);