Changes in / [196ef08:cd22764] in mainline
- Files:
-
- 2 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/Makefile.common
r196ef08 rcd22764 126 126 $(USPACE_PATH)/app/edit/edit \ 127 127 $(USPACE_PATH)/app/kill/kill \ 128 $(USPACE_PATH)/app/killall/killall \129 128 $(USPACE_PATH)/app/mkfat/mkfat \ 130 129 $(USPACE_PATH)/app/sbi/sbi \ -
uspace/Makefile
r196ef08 rcd22764 39 39 app/init \ 40 40 app/kill \ 41 app/killall \42 41 app/klog \ 43 42 app/mkfat \ -
uspace/app/kill/kill.c
r196ef08 rcd22764 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.