catch SIGTERM meant for running process
This commit is contained in:
parent
3c2dde3665
commit
d17e975cc8
3 changed files with 36 additions and 5 deletions
|
|
@ -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,
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue