[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to wait on a channel for data with channel_poll()
[Thread Prev] | [Thread Next]
- Subject: Re: How to wait on a channel for data with channel_poll()
- From: Qian Zhang <zhq527725@xxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Sun, 22 May 2011 23:22:14 +0800
- To: libssh@xxxxxxxxxx, oliverst@xxxxxxxxx
Thanks Oliver, I have found the root cause. This is not a libssh issue, it is a Windows Powershell issue (I am trying to remotely execute a Windows PowerShell script through libssh). The root cause is, when my PowerShell script is done, the process "powershell.exe" is still there, not exit, so channel_read() blocks there for more details. The solution is, when the PowerShell script finish everything, it kill itself, then channel_read() can return normally.
Re: How to wait on a channel for data with channel_poll() | Aris Adamantiadis <aris@xxxxxxxxxxxx> |
How to wait on a channel for data with channel_poll() | Qian Zhang <zhq527725@xxxxxxxxx> |
Re: How to wait on a channel for data with channel_poll() | "Oliver Stöneberg" <oliverst@xxxxxxxxx> |