mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-22 04:56:30 +02:00
sigkill instead of sighup
This commit is contained in:
parent
00252622d3
commit
f16b936946
7 changed files with 7 additions and 7 deletions
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
|
||||
gcc -o binary -x c $1
|
||||
timeout -s HUP 2 ./binary
|
||||
timeout -s KILL 2 ./binary
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
|
||||
g++ -o binary -x c $1
|
||||
timeout -s HUP 2 ./binary
|
||||
timeout -s KILL 2 ./binary
|
||||
|
|
|
@ -6,4 +6,4 @@ go build $file
|
|||
|
||||
file=${file%%.*}
|
||||
|
||||
timeout -s HUP 2 ./$file
|
||||
timeout -s KILL 2 ./$file
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
timeout -s HUP 2 nodejs $*
|
||||
timeout -s KILL 2 nodejs $*
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
timeout -s HUP 2 python2 $*
|
||||
timeout -s KILL 2 python2 $*
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
timeout -s HUP 2 python3.6 $*
|
||||
timeout -s KILL 2 python3.6 $*
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
timeout -s HUP 2 ruby $*
|
||||
timeout -s KILL 2 ruby $*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue