Commit 6a468bf7 authored by Guido van Rossum's avatar Guido van Rossum

Raise SystemExit instead of calling goaway().

parent 5afc7475
......@@ -96,12 +96,9 @@ sys_exit(self, args)
object *self;
object *args;
{
int sts;
if (!getintarg(args, &sts))
return NULL;
goaway(sts);
exit(sts); /* Just in case */
/* NOTREACHED */
/* Raise SystemExit so callers may catch it or clean up. */
err_setval(SystemExit, args);
return NULL;
}
static struct methodlist sys_methods[] = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment