summaryrefslogtreecommitdiffstats
path: root/Modules/signalmodule.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove METH_OLDARGS:Neal Norwitz2002-03-311-7/+7
| | | | | | | Convert METH_OLDARGS -> METH_VARARGS: also PyArg_Parse -> PyArg_ParseTuple Convert METH_OLDARGS -> METH_NOARGS: remove args parameter Please review. All tests pass, but some modules don't have tests. I spot checked various functions to try to make sure nothing broke.
* Add type cast.Neil Schemenauer2002-03-281-1/+2
|
* Remove many uses of PyArg_NoArgs macro, change METH_OLDARGS to METH_NOARGS.Neal Norwitz2002-03-251-5/+2
|
* OS/2 EMX port changes (Modules part of patch #450267):Andrew MacIntyre2002-03-031-1/+1
| | | | | | | | | | | | | | | Modules/ _hotshot.c dbmmodule.c fcntlmodule.c main.c pwdmodule.c readline.c selectmodule.c signalmodule.c termios.c timemodule.c unicodedata.c
* Export SIGINFO. Fixes #502077.Martin v. Löwis2002-01-121-0/+5
|
* Include <unistd.h> in Python.h. Fixes #500924.Martin v. Löwis2002-01-121-4/+0
|
* SF patch [#466877] SIGBREAK is missing from signal module.Tim Peters2001-10-011-0/+5
| | | | Patch from Steve Scott to add SIGBREAK support (unique to Windows).
* Make more warnings go away on the SGI compiler.Fred Drake2001-07-191-1/+1
| | | | This is part of SF patch #424992.
* Document SIG_* warning causes on Solaris.Martin v. Löwis2001-03-061-0/+5
|
* Make better use of GNU Pth -- patch by Andy Dustman.Guido van Rossum2000-09-191-0/+9
| | | | | | | | | | | | | | | I can't test this, so I'm just checking it in with blind faith in Andy. I've tested that it doesn't broeak a non-Pth build on Linux. Changes include: - There's a --with-pth configure option. - Instead of _GNU_PTH, we test for HAVE_PTH. - Better signal handling. - (The config.h.in file is regenerated in a slightly different order.)
* Use typedef PyOS_sighandler_t and APIs PyOS_getsig() andGuido van Rossum2000-09-161-25/+12
| | | | | | | PyOS_setsig(), instead of directly calling signal() or sigaction(). This fixes the second half of bug #110611: the mysterious ignoring of the first ^C when readline isn't used.
* REMOVED all CWI, CNRI and BeOpen copyright markings.Guido van Rossum2000-09-011-9/+0
| | | | This should match the situation in the 1.6b1 tree.
* Charles Waldman's patch to reinitialize the interpreter lock after aGuido van Rossum2000-08-271-0/+1
| | | | | | | fork. This solves the test_fork1 problem. (ceval.c, signalmodule.c, intrcheck.c) SourceForge: [ Patch #101226 ] make threading fork-safe
* Use METH_OLDARGS instead of numeric constant 0 in method def. tablesAndrew M. Kuchling2000-08-031-6/+6
|
* Use 'void' directly instead of the ANY #define, now that all code is ANSI C.Thomas Wouters2000-07-251-1/+1
| | | | Leave the actual #define in for API compatibility.
* Removed all instances of RETSIGTYPE from the source code: signalTim Peters2000-07-231-7/+6
| | | | | | | handlers "return void", according to ANSI C. Removed the new Py_RETURN_FROM_SIGNAL_HANDLER macro. Left RETSIGTYPE in the config stuff, because it's not clear to me that others aren't relying on it (e.g., extension modules).
* Missed a return from a signal handler -- thanks to /F for pointingTim Peters2000-07-231-1/+1
| | | | it out!
* Recent ANSIfication introduced a couple instances ofTim Peters2000-07-231-3/+1
| | | | | | | | | | | #if RETSIGTYPE != void That isn't C, and MSVC properly refuses to compile it. Introduced new Py_RETURN_FROM_SIGNAL_HANDLER macro in pyport.h to expand to the correct thing based on RETSIGTYPE. However, only void is ANSI! Do we still have platforms that return int? The Unix config mess appears to #define RETSIGTYPE by magic without being asked to, so I assume it's "a problem" across Unices still.
* Further ANSIfication of functionpointers and declarations. Also, make sureThomas Wouters2000-07-221-7/+16
| | | | | | to return something if RETSIGTYPE isn't void, in functions that are defined to return RETSIGTYPE. Work around an argumentlist mismatch ('void' vs. 'void *') by using a static wrapper function.
* Bunch of minor ANSIfications: 'void initfunc()' -> 'void initfunc(void)',Thomas Wouters2000-07-211-8/+8
| | | | | | | | | | | | | | | | | | and a couple of functions that were missed in the previous batches. Not terribly tested, but very carefully scrutinized, three times. All these were found by the little findkrc.py that I posted to python-dev, which means there might be more lurking. Cases such as this: long func(a, b) long a; long b; /* flagword */ { and other cases where the last ; in the argument list isn't followed by a newline and an opening curly bracket. Regexps to catch all are welcome, of course ;)
* ANSI-ficationPeter Schneider-Kamp2000-07-101-17/+6
|
* Nuke all remaining occurrences of Py_PROTO and Py_FPROTO.Tim Peters2000-07-091-2/+2
|
* Fixed symbol search for defining NSIG. It now also checks _NSIGMarc-André Lemburg2000-07-041-5/+9
| | | | | | | which some C libs define (e.g. glibc). Added a fallback default value for NSIG which hopefully provides enough room for signal slots.
* Change copyright notice - 2nd try.Guido van Rossum2000-06-301-6/+0
|
* Change copyright notice.Guido van Rossum2000-06-301-22/+7
|
* Fix another error on AIX by using a proper cast.Guido van Rossum2000-06-301-2/+2
|
* Trent Mick:Guido van Rossum2000-06-281-2/+2
| | | | | | | | | Fix warnings on 64-bit build build of signalmodule.c - Though I know that SIG_DFL and SIG_IGN are just small constants, there are cast to function pointers so the appropriate Python call is PyLong_FromVoidPtr so that the pointer value cannot overflow on Win64 where sizeof(long) < sizeof(void*).
* Thanks to Chris Herborth, the thread primitives now have proper Py*Guido van Rossum1998-12-211-5/+5
| | | | | names in the source code (they already had those for the linker, through some smart macros; but the source still had the old, un-Py names).
* Add DL_EXPORT() to all modules that could possibly be usedGuido van Rossum1998-12-041-1/+1
| | | | on BeOS or Windows.
* Renamed thread.h to pythread.h.Guido van Rossum1998-10-011-1/+1
|
* When we have siginterrupt(), use it to disable restarting interruptedGuido van Rossum1998-09-211-0/+6
| | | | system calls.
* (pause_doc): Sun CC complains about newline in string literalBarry Warsaw1998-07-211-2/+2
|
* # Added missing semicolon (was #ifdef'ed out in edit on Windows).Guido van Rossum1998-06-281-1/+1
|
* Added doc strings.Guido van Rossum1998-06-281-8/+68
|
* Use (void) to throw away a function result, not (void *) !Guido van Rossum1998-05-011-1/+1
|
* os2 patch by Jeff RushGuido van Rossum1997-11-221-0/+5
|
* This fix (across 4 files in 3 directories) solves a subtle problem withGuido van Rossum1997-11-141-0/+9
| | | | | | | | | | | | | | | signal handlers in a fork()ed child process when Python is compiled with thread support. The bug was reported by Scott <scott@chronis.icgroup.com>. What happens is that after a fork(), the variables used by the signal module to determine whether this is the main thread or not are bogus, and it decides that no thread is the main thread, so no signals will be delivered. The solution is the addition of PyOS_AfterFork(), which fixes the signal module's variables. A dummy version of the function is present in the intrcheck.c source file which is linked when the signal module is not used.
* Change the signal finialization so that it also resets the signalGuido van Rossum1997-11-031-1/+7
| | | | | handlers. After this has been called, our signal handlers are no longer active!
* Added configuration tests for presence of alarm(), pause(), and getpwent()Guido van Rossum1997-08-221-4/+4
|
* Add finialization routines; fixed some memory leaks related to this.Guido van Rossum1997-08-021-4/+35
| | | | Reset the SIGINT handler when the finalization is invoked.
* Add sys/types.h include for pid_t when threading.Guido van Rossum1997-06-061-0/+1
|
* Tweaks to keep the Microsoft compiler quier.Guido van Rossum1997-04-091-1/+8
|
* djgpp fix (SIGMAX).Guido van Rossum1997-02-141-0/+4
|
* Arrange for PyErr_CheckSignals() to be called via Py_AddPendingCall().Guido van Rossum1997-01-211-1/+3
| | | | | This avoids having to call sigcheck() (the same routine by its old name :-) in the ticker code in ceval.c's main interpreter loop.
* initsignal(): Py_DECREFs really should be Py_XDECREFs in case theBarry Warsaw1997-01-091-34/+34
| | | | PyInt_FromLong's failed.
* Several changes:Barry Warsaw1997-01-031-105/+157
| | | | | | | | | | | | | | - Conform to standard Python C coding styles. - All static symbols were renamed and shorted. - Eyeballed all return values and memory references. - Fixed a bug in signal.pause() so that exceptions raised in signal handlers are now properly caught after pause() returns. - Removed SIGCPU and SIGFSZ. We surmise that these were typos for the previously missing SIGXCPU and SIGXFSZ.
* initsignal(): Added SIGXCPU and SIGXFSZ. Left in the definitions forBarry Warsaw1996-12-161-0/+8
| | | | | | | SIGCPU and SIGFSZ but we're (Jeremy and I) are actually unsure whether these were typos or if there are systems that use these alternate names. We've checked Solaris, SunOS, and IRIX; they contain only the SIGX* names.
* Keep gcc -Wall happy.Guido van Rossum1996-12-051-0/+4
|
* New permission notice, includes CNRI.Guido van Rossum1996-10-251-13/+20
|
* Use correct field of sigaction structGuido van Rossum1996-05-291-1/+1
|