| 20 | #define EXEC_FILESIZE (1U<<20) |
| 21 | |
| 22 | static bool can_read_t(int fd, int time) |
| 23 | { |
| 24 | int ret; |
| 25 | struct pollfd p = { |
| 26 | .fd = fd, |
| 27 | .events = POLLIN, |
| 28 | }; |
| 29 | |
| 30 | ret = poll(&p, 1, time); |
| 31 | |
| 32 | return ret == 1; |
| 33 | } |
| 34 | |
| 35 | static bool can_read(int fd) |
| 36 | { |
no outgoing calls