summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmadeusz Sławiński <amade@asmblr.net>2014-07-08 14:56:31 +0200
committerAmadeusz Sławiński <amade@asmblr.net>2014-07-08 14:56:31 +0200
commite42f3520a7197b58be5dbd3c7a72c81cbf4d19d4 (patch)
tree1def229be0b29d102872158102903e02b2e3affa
parentd340b02cbedb7e6e726559f26dc09d3b8b104ec5 (diff)
downloadscreen-e42f3520a7197b58be5dbd3c7a72c81cbf4d19d4.tar.gz
Fix job control on DragonFly BSD
DragonFly BSD needs the same trick as FreeBSD does in fgtty(), or else you lose job control inside screen. From: YONETANI Tomokazu <y0n3t4n1@gmail.com> Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
-rw-r--r--src/tty.sh2
1 files changed, 1 insertions, 1 deletions
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