Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern remove broken copy of TIOCGSID.



details:   https://anonhg.NetBSD.org/src/rev/76408458e8ee
branches:  trunk
changeset: 976979:76408458e8ee
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Oct 10 17:25:11 2020 +0000

description:
remove broken copy of TIOCGSID.

diffstat:

 sys/kern/tty.c |  16 ++--------------
 1 files changed, 2 insertions(+), 14 deletions(-)

diffs (37 lines):

diff -r 7050ec2e37c3 -r 76408458e8ee sys/kern/tty.c
--- a/sys/kern/tty.c    Sat Oct 10 15:59:41 2020 +0000
+++ b/sys/kern/tty.c    Sat Oct 10 17:25:11 2020 +0000
@@ -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 @@
                    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:



Home | Main Index | Thread Index | Old Index