I'm creating a child process using popen and after a while I'm checking the result and close the pipe using pclose.
Now the problem is that in some cases the child hasn't finished yet, so pclose will wait until the child finishes. But in this case I'm not interested in the result any more, so I don't want to wait for the child as this blocks my program.
So my question is: Is there a way to close the pipe without waiting for the child? (so just kill the child).