Mercurial > cpython-lru_cache-weakref
diff Python/sysmodule.c @ 549:4efff6cea90f legacy-trunk
Raise SystemExit instead of calling goaway().
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Tue, 31 Dec 1991 13:15:35 +0000 |
| parents | bec963f99bc9 |
| children | e18f1fa398a3 |
line wrap: on
line diff
--- a/Python/sysmodule.c Tue Dec 31 13:15:19 1991 +0000 +++ b/Python/sysmodule.c Tue Dec 31 13:15:35 1991 +0000 @@ -96,12 +96,9 @@ 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[] = {
