X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=sources%2FTCP_echod.c;h=576c47f2069ac3d03bcd2b177af409d20f9c9bdb;hp=35de97c30f22b9981e7dac777b24da23fb586388;hb=12b230ea57ff3a54a12d4e2226e3901a2345fb63;hpb=bf66d833fbcd76d007d1d748217b2cea773d4a39 diff --git a/sources/TCP_echod.c b/sources/TCP_echod.c index 35de97c..576c47f 100644 --- a/sources/TCP_echod.c +++ b/sources/TCP_echod.c @@ -26,7 +26,7 @@ * * Usage: echod -h give all info * - * $Id: TCP_echod.c,v 1.5 2003/06/19 11:43:13 piccardi Exp $ + * $Id: TCP_echod.c,v 1.7 2003/06/19 14:18:27 piccardi Exp $ * ****************************************************************/ /* @@ -58,7 +58,7 @@ int main(int argc, char *argv[]) * Variables definition */ int list_fd, conn_fd; - int waiting; + int waiting = 0; pid_t pid; struct sockaddr_in serv_add, cli_add; socklen_t len; @@ -183,8 +183,9 @@ void usage(void) { printf("Usage:\n"); printf(" echod [-h] \n"); printf(" -h print this help\n"); - printf(" -d print debug info\n"); + printf(" -d write debug info\n"); printf(" -i use interactively\n"); + printf(" -w N wait N sec. before calling accept\n"); exit(1); } /*