[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Fix job control on DragonFly BSD
From: |
YONETANI Tomokazu |
Subject: |
Fix job control on DragonFly BSD |
Date: |
Sun, 6 Jul 2014 02:32:28 +0900 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
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
- Fix job control on DragonFly BSD,
YONETANI Tomokazu <=