[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Patch] channel_get_exit_status always return -1
[Thread Prev] | [Thread Next]
- Subject: [Patch] channel_get_exit_status always return -1
- From: Vic Lee <llyzs@xxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Sun, 16 Aug 2009 01:29:56 +0800
- To: libssh <libssh@xxxxxxxxxx>
Hi, I just found out that the channel_get_exit_status() function always return -1. What I saw in the codes is that, the channel is supposed to close first before we can call channel_get_exit_status; which is true because it's checking "channel->local_eof == 0" in the first line of that function. But if I have to close the channel, why another checking "channel->open == 0" to check whether the channel is open? So I tried to remove these three lines, and finally it's working as expected. Thanks, Vic
Attachment:
0003-Fix-channel_get_exit_status-always-return-1.patch
Description: application/mbox
Re: [Patch] channel_get_exit_status always return -1 | Aris Adamantiadis <aris@xxxxxxxxxxxx> |