login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
May
»
26
Re: [PATCH 1/1] Char: tty_io, fix closecount counting
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Jiri Slaby
Subject:
Re: [PATCH 1/1] Char: tty_io, fix closecount counting
Date: Monday, May 26, 2008 - 8:22 am
Jiri Slaby napsal(a):
quoted text
> filp->f_op->write never equals to tty_write for the console device, so > closecount++ is never reached and we don't close console device so many > times we open it before. (The closecount is used only for /dev/console.)
[...]
quoted text
> drivers/char/tty_io.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/drivers/char/tty_io.c b/drivers/char/tty_io.c > index c9e6e24..8c7b6ed 100644 > --- a/drivers/char/tty_io.c > +++ b/drivers/char/tty_io.c > @@ -1434,9 +1434,9 @@ static void do_tty_hangup(struct work_struct *work) > list_for_each_entry(filp, &tty->tty_files, f_u.fu_list) { > if (filp->f_op->write == redirected_tty_write) > cons_filp = filp; > + closecount++; > if (filp->f_op->write != tty_write) > continue; > - closecount++;
Hm, no, this is wrong. --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 1/1] Char: tty_io, fix closecount counting
, Jiri Slaby
, (Mon May 26, 7:08 am)
Re: [PATCH 1/1] Char: tty_io, fix closecount counting
, Jiri Slaby
, (Mon May 26, 8:22 am)
Re: [PATCH 1/1] Char: tty_io, fix closecount counting
, Jiri Slaby
, (Sat May 31, 4:50 am)
Re: [PATCH 1/1] Char: tty_io, fix closecount counting
, Jiri Slaby
, (Sat May 31, 4:51 am)
Re: [PATCH 1/1] Char: tty_io, fix closecount counting
, Alan Cox
, (Sat May 31, 6:43 am)
Re: [PATCH 1/1] Char: tty_io, fix closecount counting
, Jiri Slaby
, (Tue Jun 3, 1:46 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Kay Sievers
Re: char/tpm: tpm_infineon no longer loaded for HP 2510p laptop
Trenton D. Adams
Re: Flash IO slow 1.5 MB/s
Eric W. Biederman
[PATCH 8/8] sysfs: user namespaces: fix bug with clone(CLONE_NEWUSER) with fairsched
Alan Cox
Re: Please add ZFS support (from GPL sources)
S K
Re: cpufreq doesn't seem to work in Intel Q9300
git
:
Junio C Hamano
Re: git-svnimport
Junio C Hamano
Re: [PATCH] git-mv: Keep moved index entries inact
Johannes Schindelin
Re: [PATCH] Fix approxidate("never") to always return 0
A Large Angry SCM
Re: [RFC] origin link for cherry-pick and revert
Junio C Hamano
Re: [PATCH] Detached HEAD (experimental)
git-commits-head
:
Linux Kernel Mailing List
ath9k_htc: Allocate URBs properly
Linux Kernel Mailing List
sm501: add power control callback
Linux Kernel Mailing List
V4L/DVB (8976): af9015: Add USB ID for AVerMedia A309
Linux Kernel Mailing List
ARM: 5670/1: bcmring: add default configuration for bcmring arch
Linux Kernel Mailing List
perf probe: Fix to exit callback soon after finding too many probe points
linux-netdev
:
Daniel Lezcano
getsockopt(TCP_DEFER_ACCEPT) value change
David Miller
Re: 2.6.27.18: bnx2/tg3: BUG: "scheduling while atomic" trying to ifenslave a seco...
Ingo Molnar
Re: [regression] nf_iterate(), BUG: unable to handle kernel NULL pointer dereference
Eric W. Biederman
[PATCH 14/20] net: Simplify pppol2tp pernet operations.
Jeff Kirsher
[net-2.6 PATCH 2/5] e1000e: increase swflag acquisition timeout for ICHx/PCH
openbsd-misc
:
daniele.pilenga
snmpd hangs on 4.1 looking up hrSWRunTable
Christophe Rioux
Implementation example of snmp
Nick Holland
Re: booting openbsd on eee without cd-rom
Bryan Irvine
Re: OpenBSD 4.7 Released, May 19 2010
Cabillot Julien
Re: OpenBSD isakmpd and pf vs Cisco PIX or ASA
Colocation donated by:
Syndicate