Skip to content

Commit b32cd62

Browse files
committed
revert retest write commit
1 parent 7b2159c commit b32cd62

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

kirc.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,10 @@ raw(char *fmt, ...) {
7777

7878
if (verb) printf("<< %s", cmd_str);
7979
if (olog) log_append(cmd_str, olog);
80-
81-
ssize_t rc;
82-
do {
83-
rc = write(conn, cmd_str, strlen(cmd_str));
84-
} while ((rc < 0) && (errno == EINTR || errno == EAGAIN || errno == EWOULDBLOCK));
80+
if (write(conn, cmd_str, strlen(cmd_str)) < 0) {
81+
perror("write");
82+
exit(EXIT_FAILURE);
83+
}
8584

8685
free(cmd_str);
8786
}

0 commit comments

Comments
 (0)