Messages in this thread | | | Date | Wed, 10 Dec 1997 14:45:52 -0500 | From | "Theodore Y. Ts'o" <> | Subject | Re: [PATCH-V3!][2.1.71] BSD revoke() syscall |
| |
Date: Wed, 10 Dec 1997 14:45:48 +0000 (GMT) From: Matthew Kirkwood <weejock@ferret.lmh.ox.ac.uk>
Done. (Attached.)
Now, however, when I revoke() a tty, I get the famous old "tty->count != #fd's".
Oh, I see. We need the following change in tty_io.c as well, which should be safe (although I haven't tested it yet):
(pseudo-patch follows)
tty_io.c, arround line 1127:
+ filp->private_data = 0; /* check whether both sides are closing ... */ if (!tty_closing || (o_tty && !o_tty_closing)) return; - filp->private_data = 0;
(i.e, move filp->private_data to before the return statement).
- Ted
| |