posix_spawn seems easy enough, but not well documented on debian / ubuntu. it is in typical /usr/include/spawn.h which is part of glibc
dick@dick-intel:/usr/include$ grep posix_spawn * spawn.h:} posix_spawnattr_t; spawn.h:} posix_spawn_file_actions_t; spawn.h:/* Flags to be set in the `posix_spawnattr_t'. */ spawn.h:extern int posix_spawn (pid_t *__restrict __pid, spawn.h: __const posix_spawn_file_actions_t *__restrict spawn.h: __const posix_spawnattr_t *__restrict __attrp, spawn.h:/* Similar to `posix_spawn' but search for FILE in the PATH. spawn.h:extern int posix_spawnp (pid_t *__pid, __const char *__file, spawn.h: __const posix_spawn_file_actions_t *__file_actions, spawn.h: __const posix_spawnattr_t *__attrp, spawn.h:extern int posix_spawnattr_init (posix_spawnattr_t *__attr) __THROW; spawn.h:extern int posix_spawnattr_destroy (posix_spawnattr_t *__attr) __THROW; spawn.h:extern int posix_spawnattr_getsigdefault (__const posix_spawnattr_t * spawn.h:extern int posix_spawnattr_setsigdefault (posix_spawnattr_t *__restrict __attr, spawn.h:extern int posix_spawnattr_getsigmask (__const posix_spawnattr_t *__restrict spawn.h:extern int posix_spawnattr_setsigmask (posix_spawnattr_t *__restrict __attr, spawn.h:extern int posix_spawnattr_getflags (__const posix_spawnattr_t *__restrict spawn.h:extern int posix_spawnattr_setflags (posix_spawnattr_t *_attr, spawn.h:extern int posix_spawnattr_getpgroup (__const posix_spawnattr_t *__restrict spawn.h:extern int posix_spawnattr_setpgroup (posix_spawnattr_t *__attr, spawn.h:extern int posix_spawnattr_getschedpolicy (__const posix_spawnattr_t * spawn.h:extern int posix_spawnattr_setschedpolicy (posix_spawnattr_t *__attr, spawn.h:extern int posix_spawnattr_getschedparam (__const posix_spawnattr_t * spawn.h:extern int posix_spawnattr_setschedparam (posix_spawnattr_t *__restrict __attr, spawn.h:extern int posix_spawn_file_actions_init (posix_spawn_file_actions_t * spawn.h:extern int posix_spawn_file_actions_destroy (posix_spawn_file_actions_t * spawn.h:extern int posix_spawn_file_actions_addopen (posix_spawn_file_actions_t * spawn.h:extern int posix_spawn_file_actions_addclose (posix_spawn_file_actions_t * spawn.h:extern int posix_spawn_file_actions_adddup2 (posix_spawn_file_actions_t * _______________________________________________ Mailing list: https://launchpad.net/~kicad-developers Post to : [email protected] Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp

