From: Bruno Haible Date: Sun, 19 Oct 2008 21:51:06 +0000 (+0200) Subject: Remove unneeded code. X-Git-Tag: v0.1~6806 X-Git-Url: http://erislabs.net/gitweb/?a=commitdiff_plain;h=226968c1b005dfbc3a4339fb6d7d3592ec279460;p=gnulib.git Remove unneeded code. --- diff --git a/ChangeLog b/ChangeLog index dadd8f5a9..fb40762e4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2008-10-19 Bruno Haible + * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code. + +2008-10-19 Bruno Haible + * lib/wait-process.c: Include simply . (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions. diff --git a/m4/posix_spawn.m4 b/m4/posix_spawn.m4 index f0e84c911..8d9ae4c46 100644 --- a/m4/posix_spawn.m4 +++ b/m4/posix_spawn.m4 @@ -1,4 +1,4 @@ -# posix_spawn.m4 serial 2 +# posix_spawn.m4 serial 3 dnl Copyright (C) 2008 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -87,20 +87,11 @@ extern char **environ; #ifndef WTERMSIG # define WTERMSIG(x) ((x) & 0x7f) #endif -#ifndef WCOREDUMP -# define WCOREDUMP(x) ((x) & 0x80) -#endif -#ifndef WEXITSTATUS -# define WEXITSTATUS(x) (((x) >> 8) & 0xff) -#endif -#ifndef WIFSIGNALED -# define WIFSIGNALED(x) (WTERMSIG (x) != 0 && WTERMSIG(x) != 0x7f) -#endif #ifndef WIFEXITED # define WIFEXITED(x) (WTERMSIG (x) == 0) #endif -#ifndef WIFSTOPPED -# define WIFSTOPPED(x) (WTERMSIG (x) == 0x7f) +#ifndef WEXITSTATUS +# define WEXITSTATUS(x) (((x) >> 8) & 0xff) #endif #define CHILD_PROGRAM_FILENAME "/non/exist/ent"