mirror of https://github.com/krallin/tini.git
Also fixed a bug with the signals test, which didn't properly exercise Tini: rather than check that Tini was properly exiting with 128 + signal, it raced against Tini and was only successful if Tini didn't get the change to spawn a subprocess!muslc-binaries
parent
21c118c0e9
commit
540eb7b637
6 changed files with 41 additions and 20 deletions
@ -1,6 +1,13 @@ |
||||
#!/usr/bin/env python |
||||
import time |
||||
import signal |
||||
import os |
||||
|
||||
|
||||
def main(): |
||||
signal.signal(signal.SIGTERM, signal.SIG_DFL) |
||||
signal.signal(signal.SIGUSR1, signal.SIG_DFL) |
||||
signal.signal(signal.SIGUSR2, signal.SIG_DFL) |
||||
os.system("sleep 100") |
||||
|
||||
if __name__ == "__main__": |
||||
while 1: |
||||
time.sleep(10) |
||||
main() |
||||
|
Loading…
Reference in new issue