use direct syscall rather than write function in posix_spawn child