tags 225476 + patch thanks I agree that the newline is completely useless when no pid is printed
This patch changes the behavoir, by only printing the newline if a pid was printed. It is tested with the example provided as well as an existing process (init) and it worked for me. % ./pidof xxxxx % ./pidof init 1 % --- sysvinit-2.86.ds1.orig/src/killall5.c +++ sysvinit-2.86.ds1/src/killall5.c @@ -548,7 +548,8 @@ } } } - printf("\n"); + if (!first) + printf("\n"); closelog(); return(first ? 1 : 0); } -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]