if (sftp_ssh_socket == INVALID_SOCKET || p_WSAEventSelect == NULL) {
if ((sftp_ssh_socket == INVALID_SOCKET && no_fds_ok) || p_WSAEventSelect == NULL) {
char *ssh_sftp_get_cmdline(char *prompt){    int ret;    struct command_read_ctx actx, *ctx = &actx;    DWORD threadid;    fputs(prompt, stdout);    fflush(stdout);    if (sftp_ssh_socket == INVALID_SOCKET || p_WSAEventSelect == NULL) {	return fgetline(stdin);	       /* very simple */    }    /*     * Create a second thread to read from stdin. Process network     * and timing events until it terminates.     */    ctx->event = CreateEvent(NULL, FALSE, FALSE, NULL);    ctx->line = NULL;    if (!CreateThread(NULL, 0, command_read_thread,		      ctx, 0, &threadid)) {	fprintf(stderr, "Unable to create command input thread\n");	cleanup_exit(1);    }    do {	ret = do_eventsel_loop(ctx->event);	/* Error return can only occur if netevent==NULL, and it ain't. */	assert(ret >= 0);    } while (ret == 0);    return ctx->line;}