Subject: Re: How do i know that process has completed?

Re: How do i know that process has completed?

From: Peter Stuge <peter_at_stuge.se>
Date: Thu, 6 Oct 2011 00:15:13 +0200

Steven Ayre wrote:
> It seems the new idea is to do a select() or poll() on the socket,
> then do a nonblocking read of both stdout and stderr. Can someone
> clarify if that's correct please?

This is the only way it works yes. See example/direct_tcpip.c for an
example of how this can look. (This also considers another socket in
the same select() call.)

//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2011-10-06