Jere proved me that shit DOES happen. Now I know

This commit is contained in:
nohar 2005-08-04 07:59:38 +00:00
parent 26edb7a229
commit 76002fe2dd
1 changed files with 2 additions and 0 deletions

View File

@ -233,9 +233,11 @@ static int _write_socket(connection_t *cn, char *message)
} while (count < 0 &&
(errno == EAGAIN || errno == EINTR || errno == EINPROGRESS));
#if 0
if (count <= 0 && tcount > 0)
fatal("shit happens errno:%d count:%d tcount:%d (%s)\n", errno,
count, tcount, message);
#endif
if (count <= 0) {
/*
* if no fatal error, return WRITE_KEEP, which makes caller