Mercurial > dropbear
comparison dbutil.h @ 1835:90ac15aeac43
Bring back recently removed channel->flushing
This resolves the "sleep 10&echo hello" case which should
return immediately
author | Matt Johnston <matt@codeconstruct.com.au> |
---|---|
date | Thu, 14 Oct 2021 20:55:15 +0800 |
parents | e11ed628708b |
children | 0dcc5b0d93fa |
comparison
equal
deleted
inserted
replaced
1834:94dc11094e26 | 1835:90ac15aeac43 |
---|---|
88 | 88 |
89 char * expand_homedir_path(const char *inpath); | 89 char * expand_homedir_path(const char *inpath); |
90 | 90 |
91 void fsync_parent_dir(const char* fn); | 91 void fsync_parent_dir(const char* fn); |
92 | 92 |
93 int fd_read_pending(int fd); | |
94 | |
93 #if DROPBEAR_MSAN | 95 #if DROPBEAR_MSAN |
94 /* FD_ZERO seems to leave some memory uninitialized. clear it to avoid false positives */ | 96 /* FD_ZERO seems to leave some memory uninitialized. clear it to avoid false positives */ |
95 #define DROPBEAR_FD_ZERO(fds) do { memset((fds), 0x0, sizeof(fd_set)); FD_ZERO(fds); } while(0) | 97 #define DROPBEAR_FD_ZERO(fds) do { memset((fds), 0x0, sizeof(fd_set)); FD_ZERO(fds); } while(0) |
96 #else | 98 #else |
97 #define DROPBEAR_FD_ZERO(fds) FD_ZERO(fds) | 99 #define DROPBEAR_FD_ZERO(fds) FD_ZERO(fds) |