Bug 8474 - Multithreaded use of os.fork() is deprected
Summary: Multithreaded use of os.fork() is deprected
Status: NEW
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Server Installer (show other bugs)
Version: trunk
Hardware: PC Unknown
: P2 Normal
Target Milestone: LowPrio
Assignee: Bugzilla mail exporter
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-06 14:41 CET by Linn
Modified: 2024-12-11 13:30 CET (History)
0 users

See Also:
Acceptance Criteria:


Attachments

Description Linn cendio 2024-12-06 14:41:42 CET
Starting from Python 3.12, os.fork is deprecated. It shows when running tl-setup on Ubuntu 24.04 and 24.10 which has Python 3.12. However, the warning does not appear on Fedora 41 which has Python 3.13. I don't know why it doesn't show there...

> /opt/thinlinc/modules/thinlinc/packageinstaller/aptbackend.py:62: 
> DeprecationWarning: This process (pid=7231) is multi-threaded, use of fork() may 
> lead to deadlocks in the child.
> i11ii1i1I = os . fork ( )

This discussion talks about why fork is incompatible with threads:
https://discuss.python.org/t/concerns-regarding-deprecation-of-fork-with-alive-threads/33555

Note You need to log in before you can comment on or make changes to this bug.