about summary refs log tree commit diff
path: root/nptl
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2003-03-13 21:00:18 +0000
committerRoland McGrath <roland@gnu.org>2003-03-13 21:00:18 +0000
commit0579fabbe81afc3051b74c71907e8b5a76e2ab8a (patch)
tree6f0b829c7b3968ef5e1b40619dc7a8020e9baad0 /nptl
parent6fde8d5325b4f0ffe6f8ee6d74bc3da1787f006f (diff)
downloadglibc-0579fabbe81afc3051b74c71907e8b5a76e2ab8a.tar.gz
glibc-0579fabbe81afc3051b74c71907e8b5a76e2ab8a.tar.xz
glibc-0579fabbe81afc3051b74c71907e8b5a76e2ab8a.zip
2003-03-13 Jakub Jelinek <jakub@redhat.com>
	* sysdeps/unix/sysv/linux/fork.c (__libc_fork): Only declare and set
	PPID if [! NDEBUG].
Diffstat (limited to 'nptl')
-rw-r--r--nptl/sysdeps/unix/sysv/linux/fork.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/nptl/sysdeps/unix/sysv/linux/fork.c b/nptl/sysdeps/unix/sysv/linux/fork.c
index e75f9d51da..4cc13746ae 100644
--- a/nptl/sysdeps/unix/sysv/linux/fork.c
+++ b/nptl/sysdeps/unix/sysv/linux/fork.c
@@ -69,7 +69,9 @@ __libc_fork (void)
 
   _IO_list_lock ();
 
+#ifndef NDEBUG
   pid_t ppid = THREAD_GETMEM (THREAD_SELF, tid);
+#endif
 
 #ifdef ARCH_FORK
   pid = ARCH_FORK ();