posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
authorBruno Haible <bruno@clisp.org>
Sun, 8 Jan 2012 21:31:53 +0000 (22:31 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 8 Jan 2012 22:03:33 +0000 (23:03 +0100)
commite0ac772ccb7b897a73520c5707db43c8d2bd0bca
tree02f2499492c22f81a1f0660f20f30006865b830e
parent3f89a5e2c8f6fc011f525980ff99936a4b0445d0
posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.

* m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
* m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
macro.
* lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
* lib/spawn_faction_addopen.c: Add workaround implementation if
HAVE_WORKING_POSIX_SPAWN.
* modules/spawn (Makefile): Substitute
REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
* modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
(Depends-on): Update conditions.
* doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
the Solaris 11 bug.
ChangeLog
doc/posix-functions/posix_spawn_file_actions_addopen.texi
lib/spawn.in.h
lib/spawn_faction_addopen.c
m4/posix_spawn.m4
m4/spawn_h.m4
modules/posix_spawn_file_actions_addopen
modules/spawn