Monitoring a process


#1

Hi.

Is there a way to be notified when a child process dies?

I’m communicating with the child process using InterprocessConnection (pipes) and I do get the connectionLost() callback, but only in Windows,
In OSX the callback does not get called. (there’s a GetLastError() check in WIN in read() that leads to disconnectPipe())

Maybe I should try with sockets? or maybe there’s a better way?

Thank you


#2

Maybe one way to solve this will be to inherit InterprocessConnection into ActiveInterprocssConnection what will
use the Timer to send ‘ack’ messages and trigger connectionLost() if sending failed.