Description: Insert some NL in printout. Improve error formatting. Author: Mats Erik Andersson Forwarded: no Last-Update: 2011-04-12 --- netpipes-4.2.debian/timelimit.c +++ netpipes-4.2/timelimit.c @@ -77,7 +77,9 @@ if (rval != 0 && errno == ESRCH) break; if (i==5 && verbose) { - fprintf(stderr, "%s: child %s refuses to die [%d]. I refuse to stop killing it.", progname, childprogname, rval); + fprintf(stderr, "%s: child %s refuses to die [%d]. " + "I refuse to stop killing it.\n", + progname, childprogname, rval); } i++; } @@ -157,7 +159,7 @@ if (childpid==0) { /* child */ execvp(argv[2], argv+2); - fprintf(stderr, "%s: Unable to exec %s (%s)", + fprintf(stderr, "%s: Unable to exec %s (%s).\n", progname, argv[2], strerror(errno)); exit (1); } @@ -170,7 +172,8 @@ if (now >= start_time + timelimit) { if (nokill) { if (verbose) { - fprintf(stderr, "%s: I've waited more than %s for %s. It must finish in the background.", + fprintf(stderr, "%s: I've waited more than %s for %s. " + "It must finish in the background.\n", progname, argv[1], argv[2]); } exit(127);