1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-13 19:52:20 +00:00

Fix syntax error in lib_posix_spawn feature test (re: a1f5c992)

posix_spawn(2) was never used as a result of this error as the test
failed to compile, with most systems falling back to vfork(2).

src/lib/libast/features/lib: tst lib_posix_spawn:
- Fix parentheses goof.
This commit is contained in:
Martijn Dekker 2022-01-27 21:50:51 +00:00
parent c0567c5e1d
commit 9f199a0290

View file

@ -240,9 +240,9 @@ tst lib_posix_spawn unistd.h stdlib.h spawn.h -Dfork=______fork note{ posix_spaw
#include <string.h>
/* if it uses fork() why bother? */
#undef fork
pid_t fork(void)) { NOTE("uses fork()"; return -1; }
pid_t _fork(void)) { NOTE("uses _fork()"; return -1; }
pid_t __fork(void)) { NOTE("uses __fork()"; return -1; }
pid_t fork(void) { NOTE("uses fork()"); return -1; }
pid_t _fork(void) { NOTE("uses _fork()"); return -1; }
pid_t __fork(void) { NOTE("uses __fork()"); return -1; }
int
main(argc, argv)
int argc;