Module Name: src Committed By: christos Date: Sat Oct 10 17:25:11 UTC 2020
Modified Files: src/sys/kern: tty.c Log Message: remove broken copy of TIOCGSID. To generate a diff of this commit: cvs rdiff -u -r1.292 -r1.293 src/sys/kern/tty.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/kern/tty.c diff -u src/sys/kern/tty.c:1.292 src/sys/kern/tty.c:1.293 --- src/sys/kern/tty.c:1.292 Sat Oct 10 11:59:41 2020 +++ src/sys/kern/tty.c Sat Oct 10 13:25:11 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: tty.c,v 1.292 2020/10/10 15:59:41 christos Exp $ */ +/* $NetBSD: tty.c,v 1.293 2020/10/10 17:25:11 christos Exp $ */ /*- * Copyright (c) 2008, 2020 The NetBSD Foundation, Inc. @@ -63,7 +63,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: tty.c,v 1.292 2020/10/10 15:59:41 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: tty.c,v 1.293 2020/10/10 17:25:11 christos Exp $"); #ifdef _KERNEL_OPT #include "opt_compat_netbsd.h" @@ -1377,18 +1377,6 @@ ttioctl(struct tty *tp, u_long cmd, void s != tp->t_qsize) error = tty_set_qsize(tp, s); return error; - case TIOCGSID: - mutex_enter(&proc_lock); - if (tp->t_session == NULL) { - mutex_exit(&proc_lock); - return ENOTTY; - } - if (tp->t_session->s_leader == NULL) { - mutex_exit(&proc_lock); - return ENOTTY; - } - *(int *) data = tp->t_session->s_leader->p_pid; - mutex_exit(&proc_lock); break; case TIOCSBRK: