Changeset 416 for trunk/user/ksh/ksh.c


Ignore:
Timestamp:
Jan 4, 2018, 10:05:47 AM (4 years ago)
Author:
alain
Message:

Improve sys_exec.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/user/ksh/ksh.c

    r412 r416  
    1111#include <stdlib.h>
    1212#include <string.h>
     13#include <shared_syscalls.h>
    1314
    1415#define CMD_MAX_SIZE   (256)    // max number of characters in one command
     
    259260        pid = atoi(argv[1]);
    260261
    261         if( kill( pid , 9 ) )   // TODO replace 9 by SIGKILL
     262        if( kill( pid , SIGKILL ) )
    262263    {
    263264                printf("  error: unable to kill process %x\n", pid );
    264265        }
     266
     267    printf("\n   ...  done\n" );
     268
    265269}   // end cmd_kill()
    266270
     
    577581
    578582// @@@
    579 parse("load /bin/user/sort.elf");
     583// parse("load /bin/user/sort.elf");
    580584// @@@
    581585
Note: See TracChangeset for help on using the changeset viewer.