STINNER Victor <vstin...@python.org> added the comment:
_thread.start_new_thread() always called "exit thread", since the function was added to Python: commit 1984f1e1c6306d4e8073c28d2395638f80ea509b Author: Guido van Rossum <gu...@python.org> Date: Tue Aug 4 12:41:02 1992 +0000 * Makefile adapted to changes below. * split pythonmain.c in two: most stuff goes to pythonrun.c, in the library. * new optional built-in threadmodule.c, build upon Sjoerd's thread.{c,h}. * new module from Sjoerd: mmmodule.c (dynamically loaded). * new module from Sjoerd: sv (svgen.py, svmodule.c.proto). * new files thread.{c,h} (from Sjoerd). * new xxmodule.c (example only). * myselect.h: bzero -> memset * select.c: bzero -> memset; removed global variable static void t_bootstrap(args_raw) void *args_raw; { object *args = (object *) args_raw; object *func, *arg, *res; restore_thread((void *)NULL); func = gettupleitem(args, 0); arg = gettupleitem(args, 1); res = call_object(func, arg); DECREF(arg); /* Matches the INCREF(arg) in thread_start_new_thread */ if (res == NULL) { fprintf(stderr, "Unhandled exception in thread:\n"); print_error(); /* From pythonmain.c */ fprintf(stderr, "Exiting the entire program\n"); goaway(1); } (void) save_thread(); exit_thread(); } exit_thread() was partially replaced with PyThread_exit_thread() in: commit bcc207484a0f8f27a684e11194e7430c0710f66d Author: Guido van Rossum <gu...@python.org> Date: Tue Aug 4 22:53:56 1998 +0000 Changes for BeOS, QNX and long long, by Chris Herborth. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue44434> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com