in reply to kill system() call

Use 'open' to create a pipe to your system call. 'open' will return the pid of the spawned process.

T I M T O W T D I