X-Git-Url: https://git.armaanb.net/?p=sic.git;a=blobdiff_plain;f=sic.c;h=48933ae1a736f16bd2b1f5abf6575b51d7259827;hp=059ad9ace17e67bc9dae4b13bd10d9079a4ae90f;hb=f3827eec2a299cb0a556f9db12206e97d0f6e390;hpb=8b2eeee541044627d2f3ccb0ad9275d92cb1e5fd diff --git a/sic.c b/sic.c index 059ad9a..48933ae 100644 --- a/sic.c +++ b/sic.c @@ -220,23 +220,23 @@ main(int argc, char *argv[]) { if(i < 0) { if(errno == EINTR) continue; - die("error: error on select()"); + die("error: error on select()\n"); } else if(i == 0) { if(time(NULL) - trespond >= PINGTIMEOUT) - die("error: sic shutting down: parse timeout"); + die("error: sic shutting down: parse timeout\n"); write(srv, ping, strlen(ping)); continue; } if(FD_ISSET(srv, &rd)) { if(readl(srv, sizeof bufin, bufin) == -1) - die("error: remote host closed connection"); + die("error: remote host closed connection\n"); parsesrv(bufin); trespond = time(NULL); } if(FD_ISSET(0, &rd)) { if(readl(0, sizeof bufin, bufin) == -1) - die("error: broken pipe"); + die("error: broken pipe\n"); parsein(bufin); } }