We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b2159c commit b32cd62Copy full SHA for b32cd62
kirc.c
@@ -77,11 +77,10 @@ raw(char *fmt, ...) {
77
78
if (verb) printf("<< %s", cmd_str);
79
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));
+ if (write(conn, cmd_str, strlen(cmd_str)) < 0) {
+ perror("write");
+ exit(EXIT_FAILURE);
+ }
85
86
free(cmd_str);
87
}
0 commit comments