poll tests: Avoid test failure on BSD and Solaris systems.
[gnulib.git] / doc / posix-functions / posix_spawn.texi
blobd0cf1b919ce7be483590ac6ff46d839ab6af7360
1 @node posix_spawn
2 @section @code{posix_spawn}
3 @findex posix_spawn
5 POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9699919799/functions/posix_spawn.html}
7 Gnulib module: posix_spawn
9 Portability problems fixed by Gnulib:
10 @itemize
11 @item
12 This function is missing on some platforms:
13 FreeBSD 6.0, NetBSD 5.0, OpenBSD 3.8, Minix 3.1.8, AIX 5.1, HP-UX 11, IRIX 6.5, Solaris 9, Cygwin 1.7.x, mingw, MSVC 14, Android 8.1.
14 @item
15 When this function fails, it causes the stdio buffer contents to be output
16 twice on some platforms:
17 AIX 6.1.
18 @item
19 When the program to be invoked is an executable script without a @samp{#!}
20 marker in the first line, this function executes the script as if it were
21 a shell script, on some platforms:
22 GNU/Hurd.
23 @end itemize
25 Portability problems not fixed by Gnulib:
26 @itemize
27 @item
28 This function does not work on some platforms:
29 AIX 6.1 (under particular circumstances).
30 @end itemize
32 The Gnulib modules @code{posix_spawn_file_actions_addchdir} and
33 @code{posix_spawn_file_actions_addfchdir} provide additional actions,
34 that consist in changing the current directory of the child process
35 before starting the specified program.