summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--term.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/term.c b/term.c
index fbdb165..a4b5b48 100644
--- a/term.c
+++ b/term.c
@@ -326,6 +326,11 @@ int term_ioctl(struct tcb *tcp, long code, long arg)
printxval(tcflsh_options, arg, "TC???");
return 1;
#endif
+#ifdef TIOCSCTTY
+ case TIOCSCTTY:
+ tprintf(", %ld", arg);
+ return 1;
+#endif
/* ioctls with an indirect parameter displayed as modem flags */
@@ -425,9 +430,6 @@ int term_ioctl(struct tcb *tcp, long code, long arg)
/* ioctls with no parameters */
-#ifdef TIOCSCTTY
- case TIOCSCTTY:
-#endif
#ifdef TIOCNOTTY
case TIOCNOTTY:
#endif