catch SIGTERM meant for running process

This commit is contained in:
Aidan 2020-06-27 21:54:14 -07:00
parent 3c2dde3665
commit d17e975cc8
No known key found for this signature in database
GPG key ID: 327711E983899316
3 changed files with 36 additions and 5 deletions

View file

@ -18,6 +18,7 @@
package stdlib
import (
"os"
"git.callpipe.com/aidan/shs/ast"
)
@ -116,10 +117,10 @@ func GenFuncTable() ast.FuncTable {
},
"exit": &ast.Function{
Function: exit,
Name: "exit",
TimesCalled 0,
Args: 0,
Function: exit_shell,
Name: "exit",
TimesCalled: 0,
Args: 0,
},
}