skill: add CR to warning line

A patch from Debian.

Bug-Debian: http://bugs.debian.org/331419
Bug-Debian: http://bugs.debian.org/331419
Backported-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Craig Small 2009-11-24 11:00:37 +11:00 committed by Craig Small
parent f78352f10a
commit 86fb879a0d

View File

@ -127,7 +127,7 @@ static void check_proc(int pid){
sprintf(buf, "/proc/%d/stat", pid); /* pid (cmd) state ppid pgrp session tty */ sprintf(buf, "/proc/%d/stat", pid); /* pid (cmd) state ppid pgrp session tty */
fd = open(buf,O_RDONLY); fd = open(buf,O_RDONLY);
if(fd==-1){ /* process exited maybe */ if(fd==-1){ /* process exited maybe */
if(pids && w_flag) printf("WARNING: process %d could not be found.",pid); if(pids && w_flag) printf("WARNING: process %d could not be found.\n",pid);
return; return;
} }
fstat(fd, &statbuf); fstat(fd, &statbuf);
@ -340,7 +340,7 @@ static void skillsnice_usage(void){
}else{ }else{
fprintf(stderr, fprintf(stderr,
"Usage: snice [new priority] [options] process selection criteria\n" "Usage: snice [new priority] [options] process selection criteria\n"
"Example: snice netscape crack +7\n" "Example: snice +7 netscape crack\n"
"\n" "\n"
"The default priority is +4. (snice +4 ...)\n" "The default priority is +4. (snice +4 ...)\n"
"Priority numbers range from +20 (slowest) to -20 (fastest).\n" "Priority numbers range from +20 (slowest) to -20 (fastest).\n"