Kaydet (Commit) 6a468bf7 authored tarafından Guido van Rossum's avatar Guido van Rossum

Raise SystemExit instead of calling goaway().

üst 5afc7475
...@@ -96,12 +96,9 @@ sys_exit(self, args) ...@@ -96,12 +96,9 @@ sys_exit(self, args)
object *self; object *self;
object *args; object *args;
{ {
int sts; /* Raise SystemExit so callers may catch it or clean up. */
if (!getintarg(args, &sts)) err_setval(SystemExit, args);
return NULL; return NULL;
goaway(sts);
exit(sts); /* Just in case */
/* NOTREACHED */
} }
static struct methodlist sys_methods[] = { 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