Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #12012: ssl.PROTOCOL_SSLv2 becomes optional | Victor Stinner | 2011-05-08 | 1 | -1/+7 |
| | | | | | | | OpenSSL is now compiled with OPENSSL_NO_SSL2 defined (without the SSLv2 protocol) on Debian: fix the ssl module on Debian Testing and Debian Sid. Optimize also ssl.get_protocol_name(): speed does matter! | ||||
* | Issue #8407: The signal handler writes the signal number as a single byte | Victor Stinner | 2011-05-08 | 1 | -2/+5 |
| | | | | | instead of a nul byte into the wakeup file descriptor. So it is possible to wait more than one signal and know which signals were raised. | ||||
* | Issue #8407: Add pthread_kill(), sigpending() and sigwait() functions to the | Victor Stinner | 2011-05-07 | 1 | -2/+100 |
| | | | | signal module. | ||||
* | #12017: merge with 3.2. | Ezio Melotti | 2011-05-07 | 1 | -2/+13 |
|\ | |||||
| * | #12017: merge with 3.1. | Ezio Melotti | 2011-05-07 | 1 | -2/+13 |
| |\ | |||||
| | * | #12017: Fix segfault in json.loads() while decoding highly-nested objects ↵ | Ezio Melotti | 2011-05-07 | 1 | -2/+13 |
| | | | | | | | | | | | | using the C accelerations. | ||||
* | | | faulthandler: dump all threads by default | Victor Stinner | 2011-05-07 | 1 | -6/+6 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Set the default value of all_threads arguments to True * Py_FatalError() dumps all threads, instead of only the current thread Dump only the current thread is not reliable. In some cases, Python is unable to retrieve the state of the current thread and so is unable to dump the traceback. faulthandler keeps a reference to the interpreter and so is always able to dump the traceback of all threads. | ||||
* | | | faulthandler: save/restore errno in the two signal handlers | Victor Stinner | 2011-05-07 | 1 | -0/+4 |
| | | | |||||
* | | | Closes Issue 11916: Add a number of MacOSX specific definitions to the errno ↵ | Ronald Oussoren | 2011-05-07 | 1 | -0/+55 |
| | | | | | | | | | | | | | | | | | | module. Patch by Pierre Carrier. | ||||
* | | | Issue #8407: signal.pthread_sigmask() returns a set instead of a list | Victor Stinner | 2011-05-04 | 1 | -26/+35 |
| | | | | | | | | | | | | Update the doc. Refactor also related tests. | ||||
* | | | Issue #8407: pthread_sigmask() checks immediatly if signal handlers have been | Victor Stinner | 2011-05-03 | 1 | -0/+4 |
| | | | | | | | | | | | | | | | | | | called. The test checks that SIG_UNBLOCK calls immediatly the signal handler of the pending SIGUSR1. Improve also the tests using an exception (division by zero) instead of a flag (a function attribute). | ||||
* | | | Removed unused variable | Alexander Belopolsky | 2011-05-02 | 1 | -1/+0 |
| | | | |||||
* | | | Issue #11930: Remove year >= 1000 limitation from datetime.strftime. | Alexander Belopolsky | 2011-05-02 | 1 | -25/+0 |
| | | | | | | | | | | | | Patch by Victor Stinner. | ||||
* | | | merge | Alexander Belopolsky | 2011-05-02 | 1 | -14/+6 |
|\ \ \ | |||||
| * | | | cleanup signalmodule.c: use PyModule_AddIntMacro() | Victor Stinner | 2011-05-02 | 1 | -14/+6 |
| | | | | |||||
* | | | | Issue #11930: Remove deprecated time.accept2dyear. | Alexander Belopolsky | 2011-05-02 | 1 | -54/+1 |
|/ / / | |||||
* | | | (Merge 3.2) Issue #11277: mmap.mmap() calls fcntl(fd, F_FULLFSYNC) on Mac OS X | Victor Stinner | 2011-05-01 | 1 | -0/+9 |
|\ \ \ | |/ / | | | | | | | | | | to get around a mmap bug with sparse files. Patch written by Steffen Daode Nurpmeso. | ||||
| * | | (Merge 3.1) Issue #11277: mmap.mmap() calls fcntl(fd, F_FULLFSYNC) on Mac OS X | Victor Stinner | 2011-05-01 | 1 | -0/+9 |
| |\ \ | | |/ | | | | | | | | | | to get around a mmap bug with sparse files. Patch written by Steffen Daode Nurpmeso. | ||||
| | * | Issue #11277: mmap calls fcntl(fd, F_FULLFSYNC) on Mac OS X to get around a | Victor Stinner | 2011-05-01 | 1 | -0/+9 |
| | | | | | | | | | | | | mmap bug with sparse files. Patch written by Steffen Daode Nurpmeso. | ||||
* | | | Issue #8407, issue #11859: Add signal.pthread_sigmask() function to fetch | Victor Stinner | 2011-04-30 | 1 | -1/+138 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | and/or change the signal mask of the calling thread. Fix also tests of test_io using threads and an alarm: use pthread_sigmask() to ensure that the SIGALRM signal is received by the main thread. Original patch written by Jean-Paul Calderone. | ||||
* | | | Issue #11223: Replace threading._info() by sys.thread_info | Victor Stinner | 2011-04-30 | 1 | -13/+0 |
| | | | |||||
* | | | Issue #10517: After fork(), reinitialize the TLS used by the PyGILState_* | Antoine Pitrou | 2011-04-27 | 1 | -0/+1 |
|\ \ \ | |/ / | | | | | | | | | | APIs, to avoid a crash with the pthread implementation in RHEL 5. Patch by Charles-François Natali. | ||||
| * | | Issue #10517: After fork(), reinitialize the TLS used by the PyGILState_* | Antoine Pitrou | 2011-04-27 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | APIs, to avoid a crash with the pthread implementation in RHEL 5. Patch by Charles-François Natali. | ||||
* | | | Fix compilation of _testembed.c without threads | Victor Stinner | 2011-04-26 | 1 | -0/+6 |
| | | | |||||
* | | | Issue #11918: OS/2 and VMS are no more supported because of the lack of | Victor Stinner | 2011-04-26 | 2 | -0/+3 |
| | | | | | | | | | | | | maintainer. | ||||
* | | | Issue #10914: Add a minimal embedding test to test_capi. | Antoine Pitrou | 2011-04-25 | 1 | -0/+52 |
|\ \ \ | |/ / | |||||
| * | | Issue #10914: Add a minimal embedding test to test_capi. | Antoine Pitrou | 2011-04-25 | 1 | -0/+52 |
| | | | |||||
* | | | Issue #11856: Speed up parsing of JSON numbers. | Antoine Pitrou | 2011-04-25 | 1 | -15/+31 |
| | | | |||||
* | | | Issue #11915: threading.RLock()._release_save() raises a RuntimeError if the | Victor Stinner | 2011-04-24 | 1 | -0/+6 |
| | | | | | | | | | | | | lock was not acquired. | ||||
* | | | Issue #11382: Trivial system calls, such as dup() or pipe(), needn't | Antoine Pitrou | 2011-04-23 | 1 | -14/+0 |
| | | | | | | | | | | | | release the GIL. Patch by Charles-François Natali. | ||||
* | | | Simplify _count_elements() in _collections | Victor Stinner | 2011-04-20 | 1 | -12/+4 |
| | | | | | | | | | | | | PyIter_Next() cannot return a PyExc_StopIteration: it clears this exception. | ||||
* | | | Issue #11223: Add threading._info() function providing informations about the | Victor Stinner | 2011-04-19 | 1 | -7/+17 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | thread implementation. Skip test_lock_acquire_interruption() and test_rlock_acquire_interruption() of test_threadsignals if a thread lock is implemented using a POSIX mutex and a POSIX condition variable. A POSIX condition variable cannot be interrupted by a signal (e.g. on Linux, the futex system call is restarted). | ||||
* | | | faulthandler: don't use sigprocmask() | Victor Stinner | 2011-04-19 | 1 | -5/+1 |
| | | | | | | | | | | | | | | | It has an undefined behaviour with threads, only use pthread_sigmask() if it is available (and not broken). | ||||
* | | | os.sendfile(): on Linux if offset parameter is passed as NULL we were ↵ | Giampaolo Rodola' | 2011-04-19 | 1 | -3/+2 |
| | | | | | | | | | | | | erroneously returning a (bytes_sent, None) tuple instead of bytes_sent | ||||
* | | | (Merge 3.2) Issue #11768: The signal handler of the signal module only calls | Victor Stinner | 2011-04-18 | 1 | -10/+16 |
|\ \ \ | |/ / | | | | | | | | | | Py_AddPendingCall() for the first signal to fix a deadlock on reentrant or parallel calls. PyErr_SetInterrupt() writes also into the wake up file. | ||||
| * | | (Merge 3.1) Issue #11768: The signal handler of the signal module only calls | Victor Stinner | 2011-04-18 | 1 | -10/+16 |
| |\ \ | | |/ | | | | | | | | | | Py_AddPendingCall() for the first signal to fix a deadlock on reentrant or parallel calls. PyErr_SetInterrupt() writes also into the wake up file. | ||||
| | * | Issue #11768: The signal handler of the signal module only calls | Victor Stinner | 2011-04-18 | 1 | -10/+16 |
| | | | | | | | | | | | | | | | Py_AddPendingCall() for the first signal to fix a deadlock on reentrant or parallel calls. PyErr_SetInterrupt() writes also into the wake up file. | ||||
* | | | Fix 64-bit safety issue in BZ2Compressor and BZ2Decompressor. | Nadeem Vawda | 2011-04-12 | 1 | -9/+24 |
| | | | |||||
* | | | Merge with 3.2. | Ezio Melotti | 2011-04-11 | 1 | -1/+0 |
|\ \ \ | |/ / | |||||
| * | | Remove unnecessary call to PyErr_Clear. | Ezio Melotti | 2011-04-11 | 1 | -1/+0 |
| | | | |||||
* | | | Issue #11757: select.select() now raises ValueError when a negative timeout | Antoine Pitrou | 2011-04-09 | 1 | -0/+5 |
| | | | | | | | | | | | | | | | is passed (previously, a select.error with EINVAL would be raised). Patch by Charles-François Natali. | ||||
* | | | Fix nit (make spelling consistent in prototype) | Raymond Hettinger | 2011-04-09 | 1 | -1/+1 |
| | | | |||||
* | | | Improve faulthandler.enable(all_threads=True) | Victor Stinner | 2011-04-08 | 1 | -22/+32 |
| | | | | | | | | | | | | | | | | | | | | | faulthandler.enable(all_threads=True) dumps the tracebacks even if it is not possible to get the state of the current thread Create also the get_thread_state() subfunction to factorize the code. | ||||
* | | | faulthandler: dump_tracebacks_later() displays also the timeout | Victor Stinner | 2011-04-08 | 1 | -3/+49 |
| | | | |||||
* | | | faulthandler: fix variable name, timeout_ms => timeout_us | Victor Stinner | 2011-04-08 | 1 | -6/+6 |
| | | | | | | | | | | | | The comment was already correct. | ||||
* | | | faulthandler: one more time, fix usage of locks in the watchdog thread | Victor Stinner | 2011-04-08 | 1 | -29/+28 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Write a new test to ensure that dump_tracebacks_later() still works if it was already called and then cancelled before * Don't use a variable to check the status of the thread, only rely on locks * The thread only releases cancel_event if it was able to acquire it (if the timer was interrupted) * The main thread always hold this lock. It is only released when faulthandler_thread() is interrupted until this thread exits, or at Python exit. | ||||
* | | | faulthandler: fix unregister() if it is called before register() | Victor Stinner | 2011-04-08 | 1 | -0/+3 |
| | | | | | | | | | | | | Fix a crash: don't read from NULL. | ||||
* | | | faulthandler: fix compilating without threads | Victor Stinner | 2011-04-07 | 1 | -0/+8 |
| | | | |||||
* | | | faulthandler: we don't use (or need) SA_SIGINFO flag of sigaction() | Victor Stinner | 2011-04-07 | 1 | -7/+2 |
| | | | |||||
* | | | faulthandler: check PyThreadState_Get() result in dump_tracebacks_later() | Victor Stinner | 2011-04-07 | 1 | -12/+21 |
| | | | | | | | | | | | | Cleanup also the code |