equal
deleted
inserted
replaced
|
1 # |
|
2 # This patch was added for |
|
3 # 6820883 *top* segfaults when re-nicing |
|
4 # |
|
5 gdiff -Nurp top-3.8beta1/commands.c.orig top-3.8beta1/commands.c |
|
6 --- top-3.8beta1/commands.c.orig 2009-03-24 16:04:32.180557626 +0000 |
|
7 +++ top-3.8beta1/commands.c 2009-03-24 16:05:19.659662701 +0000 |
|
8 @@ -501,13 +501,15 @@ renice_procs(char *str) |
|
9 if (procnum == -1 || prio < PRIO_MIN || prio > PRIO_MAX) |
|
10 { |
|
11 message_error(" renice: bad priority value"); |
|
12 + return; |
|
13 } |
|
14 #endif |
|
15 |
|
16 /* move to the first process number */ |
|
17 if ((str = next_field(str)) == NULL) |
|
18 { |
|
19 - message_error(" remice: no processes specified"); |
|
20 + message_error(" renice: no processes specified"); |
|
21 + return; |
|
22 } |
|
23 |
|
24 #ifdef HAVE_SETPRIORITY |