Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-33441: Make the sigset_t converter available in other modules. (GH-6720) | Serhiy Storchaka | 2018-05-08 | 1 | -0/+4 |
| | | | | | | | | | * Expose the sigset_t converter via private API _Py_Sigset_Converter(). * Use Argument Clinic for parsing sigset_t in signalmodule.c. * Raise ValueError instead OverflowError for integers out of the C long range. Based on patch by Pablo Galindo Salgado. | ||||
* | bpo-33332: Add signal.valid_signals() (GH-6581) | Antoine Pitrou | 2018-05-04 | 1 | -0/+30 |
| | |||||
* | bpo-22674: fix test_strsignal on OSX (GH-6085) | Antoine Pietri | 2018-03-12 | 1 | -2/+2 |
| | |||||
* | signal: add strsignal() (#6017) | Antoine Pietri | 2018-03-12 | 1 | -0/+6 |
| | | | Co-authored-by: Vajrasky Kok <sky.kok@speaklikeaking.com> | ||||
* | bpo-32593: Drop FreeBSD 9 and older support (#5232) | Victor Stinner | 2018-01-22 | 1 | -20/+1 |
| | | | Drop support of FreeBSD 9 and older. | ||||
* | bpo-30050: Allow disabling full buffer warnings in signal.set_wakeup_fd (#4792) | Nathaniel J. Smith | 2017-12-18 | 1 | -0/+92 |
| | |||||
* | bpo-31370: Remove support for threads-less builds (#3385) | Antoine Pitrou | 2017-09-07 | 1 | -6/+1 |
| | | | | | | * Remove Setup.config * Always define WITH_THREAD for compatibility. | ||||
* | bpo-30807: signal.setitimer() may disable the timer by mistake (#2493) | Antoine Pitrou | 2017-06-30 | 1 | -0/+9 |
| | | | | | | * bpo-30807: signal.setitimer() may disable the timer by mistake * Add NEWS blurb | ||||
* | bpo-30796: Fix failures in signal delivery stress test (#2488) | Antoine Pitrou | 2017-06-29 | 1 | -15/+50 |
| | | | | | | | | | | * bpo-30796: Fix failures in signal delivery stress test setitimer() can have a poor minimum resolution on some machines, this would make the test reach its deadline (and a stray signal could then kill a subsequent test). * Make sure to clear the itimer after the test | ||||
* | bpo-30703: Improve signal delivery (#2415) | Antoine Pitrou | 2017-06-28 | 1 | -0/+96 |
| | | | | | | | | | | | | | | | | | | | | * Improve signal delivery Avoid using Py_AddPendingCall from signal handler, to avoid calling signal-unsafe functions. * Remove unused function * Improve comments * Add stress test * Adapt for --without-threads * Add second stress test * Add NEWS blurb * Address comments @haypo | ||||
* | bpo-29919: Remove unused imports found by pyflakes (#137) | Victor Stinner | 2017-03-27 | 1 | -6/+5 |
| | | | Make also minor PEP8 coding style fixes on modified imports. | ||||
* | Remove unused imports. | Serhiy Storchaka | 2016-12-16 | 1 | -4/+0 |
| | |||||
* | Issue #26566: Rewrite test_signal.InterProcessSignalTests | Victor Stinner | 2016-03-15 | 1 | -162/+9 |
| | | | | | | | | | | | | | | * Add Lib/test/signalinterproctester.py * Don't disable the garbage collector anymore * Don't use os.fork() with a subprocess to not inherit existing signal handlers or threads: start from a fresh process * Don't use UNIX kill command to send a signal but Python os.kill() * Use a timeout of 10 seconds to wait for the signal instead of 1 second * Always use signal.pause(), instead of time.wait(1), to wait for a signal * Use context manager on subprocess.Popen * remove code to retry on EINTR: it's no more needed since the PEP 475 * remove unused function exit_subprocess() * Cleanup the code | ||||
* | Issue #9517: Move script_helper to the support package. | Berker Peksag | 2015-05-06 | 1 | -1/+1 |
| | | | | Patch by Christie Wilson. | ||||
* | Issue #21741: Update 147 test modules to use test discovery. | Zachary Ware | 2015-04-13 | 1 | -11/+3 |
| | | | | | | | I have compared output between pre- and post-patch runs of these tests to make sure there's nothing missing and nothing broken, on both Windows and Linux. The only differences I found were actually tests that were previously *not* run. | ||||
* | Issue #23485: Fix test_signal, select.select() now retries the syscall if the | Victor Stinner | 2015-03-30 | 1 | -3/+17 |
| | | | | signal handler does not raise an exception | ||||
* | Issue #23715: signal.sigwaitinfo() and signal.sigtimedwait() are now retried | Victor Stinner | 2015-03-20 | 1 | -29/+0 |
| | | | | | | | | | | when interrupted by a signal not in the *sigset* parameter, if the signal handler does not raise an exception. signal.sigtimedwait() recomputes the timeout with a monotonic clock when it is retried. Remove test_signal.test_sigwaitinfo_interrupted() because sigwaitinfo() doesn't raise InterruptedError anymore if it is interrupted by a signal not in its sigset parameter. | ||||
* | Issue #23646: If time.sleep() is interrupted by a signal, the sleep is now | Victor Stinner | 2015-03-19 | 1 | -14/+17 |
| | | | | | | | retried with the recomputed delay, except if the signal handler raises an exception (PEP 475). Modify also test_signal to use a monotonic clock instead of the system clock. | ||||
* | Revert changeset d927047b1d8eb87738676980a24930d053ba2150 | Victor Stinner | 2015-03-17 | 1 | -10/+7 |
| | | | | Sorry, it was a mistake, the patch is still under review: issue #23646. | ||||
* | test | Victor Stinner | 2015-03-12 | 1 | -7/+10 |
| | |||||
* | Issue #23285: PEP 475 -- Retry system calls failing with EINTR. | Charles-François Natali | 2015-02-07 | 1 | -4/+3 |
| | |||||
* | Issue #22042: Fix test_signal on Windows | Victor Stinner | 2014-08-27 | 1 | -2/+3 |
| | |||||
* | Issue #22042: signal.set_wakeup_fd(fd) now raises an exception if the file | Victor Stinner | 2014-08-27 | 1 | -0/+25 |
| | | | | descriptor is in blocking mode. | ||||
* | Issue #22018: Fix test_signal: use assertEqual() not assertIs() | Victor Stinner | 2014-07-30 | 1 | -3/+3 |
| | |||||
* | Issue #22018: On Windows, signal.set_wakeup_fd() now also supports sockets. | Victor Stinner | 2014-07-29 | 1 | -0/+107 |
| | | | | A side effect is that Python depends to the WinSock library. | ||||
* | Issue #22054: Add os.get_blocking() and os.set_blocking() functions to get and | Victor Stinner | 2014-07-29 | 1 | -8/+2 |
| | | | | | set the blocking mode of a file descriptor (False if the O_NONBLOCK flag is set, True otherwise). These functions are not available on Windows. | ||||
* | Issue #22018: Fix test_set_wakeup_fd_result(), use assertEqual() not | Victor Stinner | 2014-07-24 | 1 | -3/+3 |
| | | | | assertIs(). | ||||
* | Backout 42ced0d023cd: oops, i didn't want to push this changeset :-/ | Victor Stinner | 2014-07-24 | 1 | -119/+11 |
| | |||||
* | tets | Victor Stinner | 2014-07-24 | 1 | -11/+119 |
| | |||||
* | Issue #22018: Hum, set_wakeup_fd() still raises ValueError on Windows | Victor Stinner | 2014-07-21 | 1 | -1/+2 |
| | |||||
* | Issue #22018: signal.set_wakeup_fd() now raises an OSError instead of a | Victor Stinner | 2014-07-21 | 1 | -3/+3 |
| | | | | ValueError on fstat() failure. | ||||
* | Issue #22018: Add _testcapi.raise_signal() | Victor Stinner | 2014-07-21 | 1 | -19/+46 |
| | | | | | | | | - Use _testcapi.raise_signal() in test_signal - close also os.pipe() file descriptors in some test_signal tests where they were not closed properly - Remove faulthandler._sigill() and faulthandler._sigbus(): reuse _testcapi.raise_signal() in test_faulthandler | ||||
* | Fix printing out error message when test fails and run with -bb | Antoine Pitrou | 2014-05-11 | 1 | -1/+1 |
|\ | |||||
| * | Fix printing out error message when test fails and run with -bb | Antoine Pitrou | 2014-05-11 | 1 | -1/+1 |
| | | |||||
* | | Skip test_enums in the absence of threading. | Stefan Krah | 2014-04-15 | 1 | -0/+1 |
| | | |||||
* | | fix #21076: turn signal module constants into enums | Giampaolo Rodola' | 2014-04-04 | 1 | -4/+35 |
|/ | |||||
* | Merge: #19970: Fix some comment typos. | R David Murray | 2013-12-14 | 1 | -1/+1 |
|\ | |||||
| * | #19970: Fix some comment typos. | R David Murray | 2013-12-14 | 1 | -1/+1 |
| | | | | | | | | Report and patch by Vajrasky Kok. | ||||
* | | Make test_wakeup_write_error more robust | Antoine Pitrou | 2013-08-17 | 1 | -0/+10 |
| | | | | | | | | (trying to fix a failure on the FreeBSD 9.0 buildbot) | ||||
* | | Issue #16105: When a signal handler fails to write to the file descriptor ↵ | Antoine Pitrou | 2013-08-17 | 1 | -0/+41 |
| | | | | | | | | registered with ``signal.set_wakeup_fd()``, report an exception instead of ignoring the error. | ||||
* | | Merge #18396 from 3.3 | Nick Coghlan | 2013-08-03 | 1 | -2/+8 |
|\ \ | |/ | |||||
| * | Close #18396: fix spurious test_signal failure on Windows | Nick Coghlan | 2013-08-03 | 1 | -2/+8 |
| | | | | | | | | | | signal.getsignal returns None for some signals if faulthandler is enabled (Patch by Jeremy Kloth) | ||||
* | | (Merge 3.3) Issue #18238: Skip test_signal.test_sigwaitinfo_interrupted() on AIX | Victor Stinner | 2013-06-17 | 1 | -0/+4 |
|\ \ | |/ | | | | | | | sigwaitinfo() can be interrupted on Linux (raises InterruptedError), but not on AIX. | ||||
| * | Issue #18238: Skip test_signal.test_sigwaitinfo_interrupted() on AIX | Victor Stinner | 2013-06-17 | 1 | -0/+4 |
| | | | | | | | | | | sigwaitinfo() can be interrupted on Linux (raises InterruptedError), but not on AIX. | ||||
* | | merge 3.3 | Benjamin Peterson | 2013-01-18 | 1 | -2/+9 |
|\ \ | |/ | |||||
| * | check windows fd validity (closes #16992) | Benjamin Peterson | 2013-01-18 | 1 | -2/+9 |
| | | |||||
* | | Issue #16714: use 'raise' exceptions, don't 'throw'. | Andrew Svetlov | 2012-12-18 | 1 | -2/+2 |
|\ \ | |/ | | | | | Patch by Serhiy Storchaka. | ||||
| * | Issue #16714: use 'raise' exceptions, don't 'throw'. | Andrew Svetlov | 2012-12-18 | 1 | -2/+2 |
| |\ | | | | | | | | | | Patch by Serhiy Storchaka. | ||||
| | * | Issue #16714: use 'raise' exceptions, don't 'throw'. | Andrew Svetlov | 2012-12-18 | 1 | -2/+2 |
| | | | | | | | | | | | | Patch by Serhiy Storchaka. | ||||
* | | | Get rig of EnvironmentError (#16705) | Andrew Svetlov | 2012-12-17 | 1 | -1/+1 |
| | | |