mirror of
git://sourceware.org/git/glibc.git
synced 2025-04-24 14:41:06 +08:00
[BZ #4813]
* login/forkpty.c (forkpty): Close master and slave fds on fork failure. Patch by Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>. 2007-07-20 Jakub Jelinek <jakub@redhat.com> [BZ #4813] * login/forkpty.c (forkpty): Close master and slave fds on fork failure. Patch by Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
This commit is contained in:
parent
76755a893d
commit
00d2692952
@ -1,3 +1,10 @@
|
||||
2007-07-20 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
[BZ #4813]
|
||||
* login/forkpty.c (forkpty): Close master and slave fds on
|
||||
fork failure. Patch by
|
||||
Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
|
||||
|
||||
2007-07-18 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* include/features.h (__USE_ISOC95): New define.
|
||||
@ -11,8 +18,6 @@
|
||||
* sysdeps/ia64/sched_cpucount.c: New file.
|
||||
* sysdeps/powerpc/sched_cpucount.c: New file.
|
||||
|
||||
2007-07-17 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
|
||||
__BEGIN_DECLS/__END_DECLS around the prototype.
|
||||
* bits/sched.h (__sched_cpucount): Likewise. Make second argument
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1998 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1998, 2007 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
Contributed by Zack Weinberg <zack@rabi.phys.columbia.edu>, 1998.
|
||||
|
||||
@ -38,6 +38,8 @@ forkpty (amaster, name, termp, winp)
|
||||
switch (pid = fork ())
|
||||
{
|
||||
case -1:
|
||||
close (master);
|
||||
close (slave);
|
||||
return -1;
|
||||
case 0:
|
||||
/* Child. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user