in reply to Re^9: how to kill background process when script exit?
in thread how to kill background process when script exit?

okay, I believe my problem was that I was redirecting my output, which causes open() to open the process in a shell. So the pid it was returning was the pid of the shell process.

remove the redirection, and it works.

sorry for all the hassle, I've sure learned a lot about processes though that I didn't know before on this little venture :-)
  • Comment on Re^10: how to kill background process when script exit?