New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Thread running (os.system or popen#) #38148
Comments
Bottom line: Some programs may lock up when >>> import thread, os
>>> thread.start_new_thread(os.system,
("/usr/sbin/ntpdate ifi.uio.no",)) This starts a program "ntpdate" from a Python thread. |
Logged In: YES IIRC, threads other than the main thread get a signal mask What platform are you on? Linux? |
Logged In: YES I have verified this bug on both Redhat 8.0 and SuSE 8.1, Signal is one possible path, filedescriptors another. I read |
Logged In: YES Please, could you verify if this problem persists in Python 2.3.4 If yes, in which version? Can you provide a test case? If the problem is solved, from which version? Note that if you fail to answer in one month, I'll close this bug Thank you! . Facundo |
Logged In: YES Works ok for me: Python 2.3.4 (#1, Oct 26 2004, 16:42:40)
[GCC 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)] on linux2
Type "help", "copyright", "credits" or "license" for more
information.
>>> import thread, os
>>> thread.start_new_thread(os.system,("/usr/sbin/ntpdate
ifi.uio.no",))
-1210684496
>>> |
Logged In: YES Deprecated. Reopen only if still happens in 2.3 or newer. . Facundo |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: