Fixing bug in AGI class.

Fixes #21.
master
Randall Degges 2016-02-16 13:37:36 -08:00
parent 2dab6612c8
commit 7e0dc533de
1 changed files with 3 additions and 3 deletions

View File

@ -86,14 +86,14 @@ class AGI:
""" """
def __init__(self, stdin=sys.stdin, stdout=sys.stdout, stderr=sys.stderr): def __init__(self, stdin=sys.stdin, stdout=sys.stdout, stderr=sys.stderr):
self.stdin = stdin
self.stdout = stdout
self.stderr = stderr
self._got_sighup = False self._got_sighup = False
signal.signal(signal.SIGHUP, self._handle_sighup) # handle SIGHUP signal.signal(signal.SIGHUP, self._handle_sighup) # handle SIGHUP
self.stderr.write('ARGS: ') self.stderr.write('ARGS: ')
self.stderr.write(str(sys.argv)) self.stderr.write(str(sys.argv))
self.stderr.write('\n') self.stderr.write('\n')
self.stdin = stdin
self.stdout = stdout
self.stderr = stderr
self.env = {} self.env = {}
self._get_agi_env() self._get_agi_env()