diff options
author | Ian Lance Taylor <ian@wasabisystems.com> | 2004-03-18 03:16:37 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2004-03-18 03:16:37 +0000 |
commit | fed8129b153e3c83c3038cc3ddc71730cbb7d47e (patch) | |
tree | 6811fe401ca011fb4fb3791c0dad4ada7a9a0fbf /libiberty/pex-common.h | |
parent | e8190aa2d4f92ba59fe8b0e955d926df0ed1bea8 (diff) | |
download | gcc-fed8129b153e3c83c3038cc3ddc71730cbb7d47e.tar.gz |
pex-unix.c (pexecute): Use vfork instead of fork, with appropriate changes to make this safe.
* pex-unix.c (pexecute): Use vfork instead of fork, with
appropriate changes to make this safe.
* pex-common.h (STDERR_FILE_NO): Define.
From-SVN: r79617
Diffstat (limited to 'libiberty/pex-common.h')
-rw-r--r-- | libiberty/pex-common.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libiberty/pex-common.h b/libiberty/pex-common.h index da2f71e1247..df3c0f6519c 100644 --- a/libiberty/pex-common.h +++ b/libiberty/pex-common.h @@ -1,6 +1,6 @@ /* Utilities to execute a program in a subprocess (possibly linked by pipes with other subprocesses), and wait for it. Shared logic. - Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003 + Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004 Free Software Foundation, Inc. This file is part of the libiberty library. @@ -33,6 +33,9 @@ Boston, MA 02111-1307, USA. */ /* stdout file number. */ #define STDOUT_FILE_NO 1 +/* stderr file number. */ +#define STDERR_FILE_NO 2 + /* value of `pipe': port index for reading. */ #define READ_PORT 0 |