Make ctfd reap zombies

This commit is contained in:
Neale Pickett 2009-10-07 13:29:00 -06:00
parent a6a4657a2e
commit ef78f6da9b
2 changed files with 3 additions and 0 deletions

View File

@ -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:

View File

@ -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: