title: posix_spawn Linux: How to make children processes not enter zombie state when terminating
body: <p>I have one process which spawns other process with posix_spawn(). When the children processes self-terminate they enter into a zombie state, as is the default expected behaviour. I would like them to terminate completely but I haven't been able to achieve it with the use of posix_spawnattr_setflags(). Perhaps I am not using the right flags. Anyone who knows how to do it? </p>
  
  <p>P.S. Preferrably I would like the children processes to be completely detached and independent from the parent process.</p>