linux inotify on a std.process.ProcessPipes ?
opla via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Nov 16 15:08:46 PST 2015
Does anyone know if it's possible to monitor the events that
happen on the output stream of a piped process ?
I'm stuck on doc:
- https://www.win.tue.nl/~aeb/linux/lk/lk-12.html
- http://www.ibm.com/developerworks/library/l-ubuntu-inotify/
- http://linux.die.net/man/2/inotify_add_watch
inotify_add_watch second argument seems to be a file name. The
only thing available is a std.stdio.File with a handle.
The goal is to create an asynchronous process with a least one
notification that would happen when the process terminates, maybe
when the output stream is written too.
More information about the Digitalmars-d-learn
mailing list