Mercurial > dropbear
diff 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 |
line wrap: on
line diff
--- a/dbutil.h Tue Oct 12 23:32:10 2021 +0800 +++ b/dbutil.h Thu Oct 14 20:55:15 2021 +0800 @@ -90,6 +90,8 @@ void fsync_parent_dir(const char* fn); +int fd_read_pending(int fd); + #if DROPBEAR_MSAN /* FD_ZERO seems to leave some memory uninitialized. clear it to avoid false positives */ #define DROPBEAR_FD_ZERO(fds) do { memset((fds), 0x0, sizeof(fd_set)); FD_ZERO(fds); } while(0)