Changes in uspace/app/kill/kill.c [fdb9c39c:1e9f8ab] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/kill/kill.c
rfdb9c39c r1e9f8ab 31 31 */ 32 32 /** 33 * @file For cefully terminate a task.33 * @file Forecfully terminate a task. 34 34 */ 35 35 … … 37 37 #include <stdio.h> 38 38 #include <task.h> 39 #include <str_error.h>40 39 41 #define NAME 40 #define NAME "kill" 42 41 43 42 static void print_syntax(void) … … 60 59 if (*eptr != '\0') { 61 60 printf("Invalid task ID argument '%s'.\n", argv[1]); 62 return 2;61 return 1; 63 62 } 64 63 65 64 rc = task_kill(taskid); 66 65 if (rc != EOK) { 67 printf("Failed to kill task ID %" PRIu64 ": %s\n",68 taskid, str_error(rc));69 return 3;66 printf("Failed to kill task with ID %llu (error %d)\n", 67 (unsigned long long) taskid, rc); 68 return 2; 70 69 } 71 70
Note:
See TracChangeset
for help on using the changeset viewer.