[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[commits] r2887 - in /fsf/trunk/libc: ChangeLog login/forkpty.c manual/signal.texi
- To: commits@xxxxxxxxxx
- Subject: [commits] r2887 - in /fsf/trunk/libc: ChangeLog login/forkpty.c manual/signal.texi
- From: eglibc@xxxxxxxxxx
- Date: Sat, 21 Jul 2007 07:02:35 -0000
Author: eglibc
Date: Sat Jul 21 00:02:33 2007
New Revision: 2887
Log:
Import glibc-mainline for 2007-07-21
Modified:
fsf/trunk/libc/ChangeLog
fsf/trunk/libc/login/forkpty.c
fsf/trunk/libc/manual/signal.texi
Modified: fsf/trunk/libc/ChangeLog
==============================================================================
--- fsf/trunk/libc/ChangeLog (original)
+++ fsf/trunk/libc/ChangeLog Sat Jul 21 00:02:33 2007
@@ -1,3 +1,13 @@
+2007-07-20 Jakub Jelinek <jakub@xxxxxxxxxx>
+
+ [BZ #4816]
+ * manual/signal.texi (Non-atomic Example): Make memory var volatile.
+
+ [BZ #4813]
+ * login/forkpty.c (forkpty): Close master and slave fds on
+ fork failure. Patch by
+ Mikulas Patocka <mikulas@xxxxxxxxxxxxxxxxxxxxxxxx>.
+
2007-07-18 Jakub Jelinek <jakub@xxxxxxxxxx>
* include/features.h (__USE_ISOC95): New define.
@@ -10,8 +20,6 @@
* sysdeps/ia64/sched_cpucount.c: New file.
* sysdeps/powerpc/sched_cpucount.c: New file.
-
-2007-07-17 Jakub Jelinek <jakub@xxxxxxxxxx>
* sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
__BEGIN_DECLS/__END_DECLS around the prototype.
Modified: fsf/trunk/libc/login/forkpty.c
==============================================================================
--- fsf/trunk/libc/login/forkpty.c (original)
+++ fsf/trunk/libc/login/forkpty.c Sat Jul 21 00:02:33 2007
@@ -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@xxxxxxxxxxxxxxxxxxxxxx>, 1998.
@@ -38,6 +38,8 @@
switch (pid = fork ())
{
case -1:
+ close (master);
+ close (slave);
return -1;
case 0:
/* Child. */
Modified: fsf/trunk/libc/manual/signal.texi
==============================================================================
--- fsf/trunk/libc/manual/signal.texi (original)
+++ fsf/trunk/libc/manual/signal.texi Sat Jul 21 00:02:33 2007
@@ -1966,7 +1966,7 @@
#include <signal.h>
#include <stdio.h>
-struct two_words @{ int a, b; @} memory;
+volatile struct two_words @{ int a, b; @} memory;
void
handler(int signum)