if ((s = accept(ls, (struct sockaddr *)&server, &len)) < 0) {
perror(progname);
fprintf(stderr, "%s: unable to accept\n", progname);
if ((s = accept(ls, (struct sockaddr *)&server, &len)) < 0) {
perror(progname);
fprintf(stderr, "%s: unable to accept\n", progname);