sshd server to avoid closing child handle if already closed

was causing exception in debugger otherwise.
This commit is contained in:
quamrulmina 2015-11-16 18:19:50 -06:00
parent 138ce33669
commit 5b34ab66d8

View File

@ -885,11 +885,12 @@ collect_children(void)
char *inittermseq = "\033[20l\033[?7h\0" ; // no LFtoCRLF no AUTOWRAPON
Channel *c=channel_by_id ( s->chanid );
buffer_append(&c->input, inittermseq, strlen(inittermseq));
channel_output_poll();
packet_write_poll();
}
session_close_by_pid(s->pid, status);
CloseHandle(process);
if (s->pid)
CloseHandle(process);
int WSHELPDelChildToWatch (HANDLE processtowatch);
WSHELPDelChildToWatch (process); // take the process off from watch list in select mux
}