On upgrade to manic minotaur 23.10, python threading deamon not working | pressku.com

Trending 4 months ago

I upgraded Ubuntu from 23.04 to 23.10

Release 23.10 (Mantic Minotaur) 64-bit

Kernel Linux 6.5.0-17-generic x86_64

Python3 type 3.11.6

Since upgrading, immoderate python programs utilizing threading pinch deamon = True not longer termination nan thread erstwhile nan python book is finished.

Here is simply a elemental book to beryllium nan point:

import threading arsenic th def thread_method(): input() thread_test = th.Thread(target=thread_method, args=(), name='daemon_exit_test', daemon=True) thread_test.start() print(thread_test.isDaemon()) print('print this past exit')

This creates a deamon thread, and holds it waiting for an input(), i.e. participate key.

In nan past, because nan emblem deamon=True, arsenic soon arsenic it reaches nan extremity of nan book it will termination nan thread. Now it does not behave for illustration that, and holds nan thread open, which tin beryllium ended manually by pushing nan participate cardinal to judge nan input().

Is location a mounting successful nan Ubuntu 23.10 to get this moving per usual? Maybe a kernel move aliases upgrade? I besides wonderment if upgrading to python 3.12 would help? But I consciousness this is much of a linux rumor than python issue.