Removed old syscalls
This commit is contained in:
@ -3,6 +3,10 @@ const {
|
||||
pid 1
|
||||
}
|
||||
|
||||
sig {
|
||||
chld 17
|
||||
}
|
||||
|
||||
state {
|
||||
exited 0x4
|
||||
}
|
||||
|
@ -8,14 +8,14 @@ main() {
|
||||
|
||||
loop {
|
||||
io.write("λ ")
|
||||
n := io.in(command)
|
||||
n := io.read(command)
|
||||
|
||||
if n <= 0 {
|
||||
return
|
||||
}
|
||||
|
||||
command[n-1] = 0
|
||||
pid := sys.fork()
|
||||
pid := sys.clone(sig.chld, 0, 0, 0, 0)
|
||||
|
||||
if pid == 0 {
|
||||
sys.execve(command, 0, 0)
|
||||
|
Reference in New Issue
Block a user