diff options
author | Martin Panter <vadmium+py@gmail.com> | 2015-11-30 03:18:29 (GMT) |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2015-11-30 03:18:29 (GMT) |
commit | b4ce1fc31be5614d527d77c55018281ebbcd70ab (patch) | |
tree | 8f51eb2efd5191ae1284be5d82b5d84f4bf6a424 /Doc/includes | |
parent | 92d5fbaf8f6c3c3c8ab0c83be848fcc206f02b22 (diff) | |
download | cpython-b4ce1fc31be5614d527d77c55018281ebbcd70ab.zip cpython-b4ce1fc31be5614d527d77c55018281ebbcd70ab.tar.gz cpython-b4ce1fc31be5614d527d77c55018281ebbcd70ab.tar.bz2 |
Issue #5319: New Py_FinalizeEx() API to exit with status 120 on failure
Diffstat (limited to 'Doc/includes')
-rw-r--r-- | Doc/includes/run-func.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Doc/includes/run-func.c b/Doc/includes/run-func.c index 986d670..ead7bdd 100644 --- a/Doc/includes/run-func.c +++ b/Doc/includes/run-func.c @@ -63,6 +63,8 @@ main(int argc, char *argv[]) fprintf(stderr, "Failed to load \"%s\"\n", argv[1]); return 1; } - Py_Finalize(); + if (Py_FinalizeEx() < 0) { + return 120; + } return 0; } |