diff options
Diffstat (limited to 'ttb.c')
| -rw-r--r-- | ttb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ttb.c b/ttb.c index 48e73c5..8f0c561 100644 --- a/ttb.c +++ b/ttb.c @@ -1,3 +1,4 @@ +#include <errno.h> #include <signal.h> #include <stddef.h> #include <stdio.h> @@ -103,7 +104,7 @@ after: for (size_t j = 1; j < lengthof(peers); ++j) if (peers[j] && i != j) - write(peers[j], buf, reads); + while (errno = 0, write(peers[j], buf, reads), errno == EINTR); } } } |