Source-Changes-HG archive

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

[src/trunk]: src/sys/fs/ptyfs if one of the ptyfs instances has grabbed the h...



details:   https://anonhg.NetBSD.org/src/rev/6b9f12f00220
branches:  trunk
changeset: 328122:6b9f12f00220
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Mar 26 21:28:48 2014 +0000

description:
if one of the ptyfs instances has grabbed the handle don't grab it again,
Ilya Zykov

diffstat:

 sys/fs/ptyfs/ptyfs_subr.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 652ba203d716 -r 6b9f12f00220 sys/fs/ptyfs/ptyfs_subr.c
--- a/sys/fs/ptyfs/ptyfs_subr.c Wed Mar 26 19:44:51 2014 +0000
+++ b/sys/fs/ptyfs/ptyfs_subr.c Wed Mar 26 21:28:48 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ptyfs_subr.c,v 1.27 2014/03/21 17:21:53 christos Exp $ */
+/*     $NetBSD: ptyfs_subr.c,v 1.28 2014/03/26 21:28:48 christos Exp $ */
 
 /*
  * Copyright (c) 1993
@@ -73,7 +73,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ptyfs_subr.c,v 1.27 2014/03/21 17:21:53 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ptyfs_subr.c,v 1.28 2014/03/26 21:28:48 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -116,7 +116,7 @@
 static void
 ptyfs_getinfo(struct ptyfsnode *ptyfs, struct lwp *l)
 {
-       extern struct ptm_pty *ptyfs_save_ptm, ptm_ptyfspty;
+       extern struct ptm_pty *ptyfs_save_ptm;
 
        if (ptyfs->ptyfs_type == PTYFSroot) {
                ptyfs->ptyfs_mode = S_IRUSR|S_IXUSR|S_IRGRP|S_IXGRP|
@@ -126,7 +126,7 @@
                ptyfs->ptyfs_mode = S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|
                    S_IROTH|S_IWOTH;
 
-       if (ptyfs_save_ptm != NULL && ptyfs_save_ptm != &ptm_ptyfspty) {
+       if (ptyfs_save_ptm != NULL) {
                int error;
                struct pathbuf *pb;
                struct nameidata nd;



Home | Main Index | Thread Index | Old Index