Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
function2-llx committed May 14, 2020
2 parents 3933db5 + a67c91f commit 6252ad9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions test.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
#!/bin/ash
# run this with ash test.sh
set -e
set -v
echo "test begin"
# ucore tests
/ucore/badarg
/ucore/exit
/ucore/forktest
/ucore/matrix
/ucore/sleep
/ucore/sleepkill
/ucore/spin
/ucore/testbss
/ucore/yield
echo "test end"
halt -f
3 changes: 2 additions & 1 deletion ucore/src/lib/syscall.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ sys_yield(void) {

int
sys_kill(int pid) {
return syscall(SYS_kill, pid);
#define SIGKILL 9
return syscall(SYS_kill, pid, SIGKILL);
}

int
Expand Down

0 comments on commit 6252ad9

Please sign in to comment.