Home | History | Annotate | Download | only in libedit
History log of /src/lib/libedit/sig.c
RevisionDateAuthorComments
 1.29  14-Jun-2025  christos Change kill(0, signo) -> raise(signo) so that we only signal the current
process not the whole process group. Pointed out by geoff thomas. Related
issues:
https://www.postgresql.org/message-id/271520.1713052173%40sss.pgh.pa.us
https://github.com/astral-sh/python-build-standalone/pull/652\
#issuecomment-2972762033
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=159226
 1.28  18-Dec-2024  christos From tkoeppe@github: Specify SA_ONSTACK when setting up a signal
handler. This allows the handler to use the alternate signal stack
if one is available in the handling thread, but has no effect
otherwise.

This change makes the signal handler respect existing choices
better. Specifically, this allows signal handlers to be set when
the process includes a Go runtime, since Go enforces that all signal
handlers in the process use the SA_ONSTACK flag (e.g. see
golang/go#20400).
 1.27  03-Feb-2023  christos Don't clear the handle to el "sel" and set it earlier to prevent handling
a signal before the handle is set. (From: des at FreeBSD)
 1.26  09-May-2016  christos s/protected/libedit_private/g
 1.25  11-Apr-2016  christos Get rid of private/public; keep protected (Ingo Schwarze)
 1.24  16-Feb-2016  christos more include file cleanup (Ingo Schwarze)
 1.23  16-Feb-2016  christos include errno.h
 1.22  16-Feb-2016  christos From Ingo Scharze:
Let "el.h" include everything needed for struct editline,
and don't include that stuff multiple times. That also improves
consistency, also avoids circular inclusions, and also makes it
easier to follow what is going on, even though not quite as nice.
But it seems like the best we can do...
 1.21  16-Feb-2016  christos cleanup chartype.h includes (Ingo Schwarze)
 1.20  16-Feb-2016  christos one more
 1.19  16-Feb-2016  christos include explicitly errno.h since we use it.
 1.18  15-Feb-2016  christos OpenBSD sig.c rev. 1.6 2001/12/06 04:26:00 deraadt
save and restore errno in signal handler
 1.17  28-Jul-2011  christos kill ptr_t and ioctl_t, add * sizeof(*foo) to all allocations.
 1.16  28-Jul-2011  christos term -> terminal
 1.15  19-Feb-2009  christos reset and redraw on sigcont. From Anon Ymous.
 1.14  18-Feb-2009  christos SA_RESTART for all signals but SIGINT. From Anon Ymous.
 1.13  15-Feb-2009  christos in order for read() to return EINTR we need to use sigaction, not signal,
otherwise SA_RESTART is set.
 1.12  10-Sep-2008  christos branches: 1.12.6;
Allow a single process to control multiple ttys (for pthreads using _REENTRANT)
using multiple EditLine objects. Mostly from Preston A. Elder.
 1.11  07-Aug-2003  agc branches: 1.11.32;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.10  10-Mar-2003  christos sig_t is non portable
 1.9  18-Mar-2002  christos - constify; passes all gcc and lint strict checks.
- add config.h [Jason Evans], to create a portable version of libedit that
can be easily compiled on other OS's.
 1.8  09-Jan-2001  jdolecek make constant arrays a const
 1.7  04-Jan-2001  christos fix dumb typo in signal setup [from OpenBSD]
return -1 if alloc fails.
 1.6  04-Sep-2000  lukem convert to new style guide, which includes:
- ansi prototypes & features (such as stdargs)
- 8 space indents
 1.5  02-Jul-1999  simonb More trailing white space.
 1.4  06-Jul-1997  christos Fix compiler warnings.
 1.3  11-Apr-1997  christos Portability fixes:
__const -> const
BADSIG -> SIG_ERR
int flags -> u_int flags
#if __STDC__ -> #ifdef __STDC__
 1.2  11-Jan-1997  lukem RCSid police
editline first appeared in 4.4BSD not NetBSD1.0
 1.1  06-May-1994  cgd branches: 1.1.1;
Initial revision
 1.1.1.1  06-May-1994  cgd libedit!
 1.11.32.1  24-Sep-2008  wrstuden Merge in changes between wrstuden-revivesa-base-2 and
wrstuden-revivesa-base-3.
 1.12.6.1  13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html

RSS XML Feed