mirror of
https://sourceware.org/git/glibc.git
synced 2025-12-24 17:51:17 +03:00
Update.
* sysdeps/unix/sysv/linux/i386/vfork.S: If SAVE_PID and RESTORE_PID are defined, use it. * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1999, 2002 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1999, 2002, 2004 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
Contributed by Andreas Schwab <schwab@gnu.org>.
|
||||
|
||||
@@ -34,6 +34,10 @@ ENTRY (__vfork)
|
||||
/* Pop the return PC value into ECX. */
|
||||
popl %ecx
|
||||
|
||||
#ifdef SAVE_PID
|
||||
SAVE_PID
|
||||
#endif
|
||||
|
||||
/* Stuff the syscall number in EAX and enter into the kernel. */
|
||||
movl $SYS_ify (vfork), %eax
|
||||
int $0x80
|
||||
@@ -43,6 +47,10 @@ ENTRY (__vfork)
|
||||
address back on the stack. */
|
||||
pushl %ecx
|
||||
|
||||
#ifdef RESTORE_PID
|
||||
RESTORE_PID
|
||||
#endif
|
||||
|
||||
cmpl $-4095, %eax
|
||||
/* Branch forward if it failed. */
|
||||
# ifdef __ASSUME_VFORK_SYSCALL
|
||||
|
||||
Reference in New Issue
Block a user