Changeset 196ef08 in mainline
- Timestamp:
- 2011-01-05T14:00:37Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4765152, b1d15e7, dffabf0
- Parents:
- cd22764 (diff), c4faa0c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/Makefile.common
rcd22764 r196ef08 126 126 $(USPACE_PATH)/app/edit/edit \ 127 127 $(USPACE_PATH)/app/kill/kill \ 128 $(USPACE_PATH)/app/killall/killall \ 128 129 $(USPACE_PATH)/app/mkfat/mkfat \ 129 130 $(USPACE_PATH)/app/sbi/sbi \ -
uspace/Makefile
rcd22764 r196ef08 39 39 app/init \ 40 40 app/kill \ 41 app/killall \ 41 42 app/klog \ 42 43 app/mkfat \ -
uspace/app/kill/kill.c
rcd22764 r196ef08 31 31 */ 32 32 /** 33 * @file For ecfully terminate a task.33 * @file Forcefully terminate a task. 34 34 */ 35 35 … … 37 37 #include <stdio.h> 38 38 #include <task.h> 39 #include <str_error.h> 39 40 40 #define NAME "kill"41 #define NAME "kill" 41 42 42 43 static void print_syntax(void) … … 59 60 if (*eptr != '\0') { 60 61 printf("Invalid task ID argument '%s'.\n", argv[1]); 61 return 1;62 return 2; 62 63 } 63 64 64 65 rc = task_kill(taskid); 65 66 if (rc != EOK) { 66 printf("Failed to kill task with ID %llu (error %d)\n",67 (unsigned long long) taskid, rc);68 return 2;67 printf("Failed to kill task ID %" PRIu64 ": %s\n", 68 taskid, str_error(rc)); 69 return 3; 69 70 } 70 71
Note:
See TracChangeset
for help on using the changeset viewer.