posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
authorBruno Haible <bruno@clisp.org>
Sun, 8 Jan 2012 21:18:30 +0000 (22:18 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 8 Jan 2012 22:03:26 +0000 (23:03 +0100)
commit3f89a5e2c8f6fc011f525980ff99936a4b0445d0
tree291db6b351f9e681e2fa0cde5a323b85ccbae497
parent88236bad53d1dd5e6b8a592a724736bbd9db7851
posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.

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