www.libssh2.org | Daily snapshots | Mailing list archive | Docs | Examples | github

Archive Index This month's Index

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

Re: How do i know that process has completed?

From: Pavel Strashkin <pavel.strashkin_at_gmail.com>
Date: Wed, 5 Oct 2011 14:52:09 -0700

Oh, so, for an example, if some application prints to stdout and
stderr both, and i'm reading _only_ from stdout (and waiting for EOF),
i can get stuck just because there is a data in stderr and i have to
read it, but i don't?

2011/10/5 Peter Stuge <peter_at_stuge.se>:
> Pavel Strashkin wrote:
>> Am i correct that libssh2_channel_eof should be used with
>> libssh2_channel_read? i.e. without reading from a channel EOF will
>> never be received.
> Well, EOF may have been received, but libssh2 will not tell you until
> you have also read all data from both stdout and stderr.
> //Peter
> _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2011-10-05

the libssh2 team