public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/4813] New: forkpty() leaks file handles
@ 2007-07-19 2:02 mikulas at artax dot karlin dot mff dot cuni dot cz
2007-07-19 2:05 ` [Bug libc/4813] " mikulas at artax dot karlin dot mff dot cuni dot cz
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: mikulas at artax dot karlin dot mff dot cuni dot cz @ 2007-07-19 2:02 UTC (permalink / raw)
To: glibc-bugs
When fork() inside forkpty() fails with an error, forkpty() leaves two open file
handles. The handles are not stored anywhere and are not closed.
--
Summary: forkpty() leaks file handles
Product: glibc
Version: unspecified
Status: NEW
Severity: minor
Priority: P1
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: mikulas at artax dot karlin dot mff dot cuni dot cz
CC: glibc-bugs at sources dot redhat dot com
GCC build triplet: i686-linux-gnu
GCC host triplet: i686-linux-gnu
GCC target triplet: i686-linux-gnu
http://sourceware.org/bugzilla/show_bug.cgi?id=4813
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libc/4813] forkpty() leaks file handles
2007-07-19 2:02 [Bug libc/4813] New: forkpty() leaks file handles mikulas at artax dot karlin dot mff dot cuni dot cz
@ 2007-07-19 2:05 ` mikulas at artax dot karlin dot mff dot cuni dot cz
2007-07-20 7:20 ` cvs-commit at gcc dot gnu dot org
2007-07-20 7:21 ` jakub at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: mikulas at artax dot karlin dot mff dot cuni dot cz @ 2007-07-19 2:05 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From mikulas at artax dot karlin dot mff dot cuni dot cz 2007-07-19 02:04 -------
Created an attachment (id=1920)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=1920&action=view)
patch to close file descriptors on fork() error
--
http://sourceware.org/bugzilla/show_bug.cgi?id=4813
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libc/4813] forkpty() leaks file handles
2007-07-19 2:02 [Bug libc/4813] New: forkpty() leaks file handles mikulas at artax dot karlin dot mff dot cuni dot cz
2007-07-19 2:05 ` [Bug libc/4813] " mikulas at artax dot karlin dot mff dot cuni dot cz
@ 2007-07-20 7:20 ` cvs-commit at gcc dot gnu dot org
2007-07-20 7:21 ` jakub at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2007-07-20 7:20 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2007-07-20 07:20 -------
Subject: Bug 4813
CVSROOT: /cvs/glibc
Module name: libc
Changes by: jakub@sourceware.org 2007-07-20 07:20:07
Modified files:
. : ChangeLog
login : forkpty.c
Log message:
[BZ #4813]
* login/forkpty.c (forkpty): Close master and slave fds on
fork failure. Patch by
Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/libc/ChangeLog.diff?cvsroot=glibc&r1=1.10709&r2=1.10710
http://sourceware.org/cgi-bin/cvsweb.cgi/libc/login/forkpty.c.diff?cvsroot=glibc&r1=1.2&r2=1.3
--
http://sourceware.org/bugzilla/show_bug.cgi?id=4813
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libc/4813] forkpty() leaks file handles
2007-07-19 2:02 [Bug libc/4813] New: forkpty() leaks file handles mikulas at artax dot karlin dot mff dot cuni dot cz
2007-07-19 2:05 ` [Bug libc/4813] " mikulas at artax dot karlin dot mff dot cuni dot cz
2007-07-20 7:20 ` cvs-commit at gcc dot gnu dot org
@ 2007-07-20 7:21 ` jakub at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: jakub at redhat dot com @ 2007-07-20 7:21 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From jakub at redhat dot com 2007-07-20 07:21 -------
Fixed in CVS.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://sourceware.org/bugzilla/show_bug.cgi?id=4813
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-07-20 7:21 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-19 2:02 [Bug libc/4813] New: forkpty() leaks file handles mikulas at artax dot karlin dot mff dot cuni dot cz
2007-07-19 2:05 ` [Bug libc/4813] " mikulas at artax dot karlin dot mff dot cuni dot cz
2007-07-20 7:20 ` cvs-commit at gcc dot gnu dot org
2007-07-20 7:21 ` jakub at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).