mirror of https://github.com/dirtbags/moth.git
Make ctfd reap zombies
This commit is contained in:
parent
a6a4657a2e
commit
ef78f6da9b
2
ctfd.py
2
ctfd.py
|
@ -4,6 +4,7 @@ import asyncore
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import optparse
|
import optparse
|
||||||
|
import signal
|
||||||
from ctf import pointsd
|
from ctf import pointsd
|
||||||
from ctf import flagd
|
from ctf import flagd
|
||||||
from ctf import histogram
|
from ctf import histogram
|
||||||
|
@ -38,6 +39,7 @@ def main():
|
||||||
pointsrv = pointsd.start()
|
pointsrv = pointsd.start()
|
||||||
flagsrv = flagd.start()
|
flagsrv = flagd.start()
|
||||||
|
|
||||||
|
signal.signal(signal.SIGCHLD, sigchld)
|
||||||
s = pointsrv.store
|
s = pointsrv.store
|
||||||
slen = 0
|
slen = 0
|
||||||
while True:
|
while True:
|
||||||
|
|
|
@ -8,6 +8,7 @@ if f.getfirst('submit'):
|
||||||
print()
|
print()
|
||||||
print('Thanks for filling in the survey.')
|
print('Thanks for filling in the survey.')
|
||||||
print()
|
print()
|
||||||
|
print(dir(f))
|
||||||
print('The key is:')
|
print('The key is:')
|
||||||
print(' quux blorb frotz')
|
print(' quux blorb frotz')
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue