How to make a program exit?
{-- Rot13 - Hateme
ungrzr2 at ubatxbat.pbz
Thu Jan 3 03:32:18 EST 2002
Paul Rubin <phr-n2002a at nightsong.com> wrote in news:7xitak7w1b.fsf_-
_ at ruckus.brouhaha.com:
>
> In a non-threaded application I'd just call sys.exit(), but that
> only collects the current listener thread rather than shutting down
> the whole server.
>
> I can think of some brutal ways to stop the server, but it's not clear
> from the docs if there's a nice way.
>
They will always advice you to 'always wait for other threads
to finish' but we don't always care if other threads are finished
or not. I use os.exit() which does exit on multithread scripts.
More information about the Python-list
mailing list