Fix job control on DragonFly BSD

YONETANI Tomokazu <[email protected]>
Newsgroups gmane.comp.gnu.screen.user
Message-ID <[email protected]>
Hi,
DragonFly BSD needs the same trick as FreeBSD does in fgtty(),
or else you lose job control inside screen.

Cheers,
YONETANI Tomokazu.

diff --git a/src/tty.sh b/src/tty.sh
index 814f3d9..b691dbf 100644
--- a/src/tty.sh
+++ b/src/tty.sh
@@ -812,7 +812,7 @@ int fd;
   /*
    * Under BSD we have to set the controlling terminal again explicitly.
    */
-# if (defined(__FreeBSD_kernel__) || defined(__GNU__)) && defined(TIOCSCTTY)
+# if (defined(__FreeBSD_kernel__) || defined(__DragonFly__) || defined(__GNU__)) && defined(TIOCSCTTY)
   ioctl(fd, TIOCSCTTY, (char *)0);
 # endif
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.