Changes in / [196ef08:cd22764] in mainline


Ignore:
Files:
2 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • boot/Makefile.common

    r196ef08 rcd22764  
    126126        $(USPACE_PATH)/app/edit/edit \
    127127        $(USPACE_PATH)/app/kill/kill \
    128         $(USPACE_PATH)/app/killall/killall \
    129128        $(USPACE_PATH)/app/mkfat/mkfat \
    130129        $(USPACE_PATH)/app/sbi/sbi \
  • uspace/Makefile

    r196ef08 rcd22764  
    3939        app/init \
    4040        app/kill \
    41         app/killall \
    4241        app/klog \
    4342        app/mkfat \
  • uspace/app/kill/kill.c

    r196ef08 rcd22764  
    3131 */
    3232/**
    33  * @file Forcefully terminate a task.
     33 * @file Forecfully terminate a task.
    3434 */
    3535
     
    3737#include <stdio.h>
    3838#include <task.h>
    39 #include <str_error.h>
    4039
    41 #define NAME  "kill"
     40#define NAME "kill"
    4241
    4342static void print_syntax(void)
     
    6059        if (*eptr != '\0') {
    6160                printf("Invalid task ID argument '%s'.\n", argv[1]);
    62                 return 2;
     61                return 1;
    6362        }
    6463
    6564        rc = task_kill(taskid);
    6665        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;
    7069        }
    7170
Note: See TracChangeset for help on using the changeset viewer.