From: Eric S. Raymond Date: Mon, 2 Dec 2013 15:45:18 +0000 (-0500) Subject: Cleaner exit code. X-Git-Tag: 2.4~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ab8a1d8efb9d4b5e0fdc4e1db75997ae2b10a316;p=irker.git Cleaner exit code. --- diff --git a/irkerd b/irkerd index 705b20c..024a446 100755 --- a/irkerd +++ b/irkerd @@ -873,9 +873,7 @@ if __name__ == '__main__': irker = Irker(debuglevel=debuglvl) irker.irc.debug(1, "irkerd version %s" % version) if immediate: - def bailout(): - raise SystemExit, 0 - irker.irc.add_event_handler("quit", lambda _c, _e: bailout()) + irker.irc.add_event_handler("quit", lambda _c, _e: sys.exit(0)) irker.handle('{"to":"%s","privmsg":"%s"}' % (immediate, arguments[0]), quit_after=True) irker.irc.spin() else: