bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GNU ed maintainer, signal handling problem


From: Claudio Fontana
Subject: GNU ed maintainer, signal handling problem
Date: Wed, 29 Sep 2004 07:32:39 +0200 (CEST)

 --- Paul Eggert <address@hidden> writes: 
> Dan Jacobson <address@hidden> writes:
> > In ed(1),
> > pppppppppppp
> > and
> > p
> > do the same thing, print one line.
> 
> In traditional ed, "p" and "pp" both print one line,
> and "ppp", "pppp", etc. are errors.
> 
> POSIX requires support for both "p" and "pp", and
> deliberately doesn't specify whether "pp" writes
> the line once or twice.
> 
> So, the GNU behavior is a compatible extension to
> traditional
> behavior, and conforms to POSIX here.
> 
> I'm not sure whether all this mess is worth
> documenting.  ed hasn't
> changed for 10 years, and I'm not sure who's
> maintaining it now, if
> anybody.

It is Andrew L. Moore. I've also contacted him about
signal handling problems under GNU/Linux with ed 0.2,
but I have been ignored after explaining the problem
in detail.

I include the problem I described there (that I ONLY
experienced under GNU/Linux because of different
signal implementation):

The first time ed gets a SIGINT, the program seems to
correctly handle the signal, and aborts the executing
command (for example if command takes a long time, or
you are at [press return to continue]).

The problem is that the signal handler is exited via a
longjump, so sigreturn(2), which is inserted by the
kernel in the stack frame for the signal handler, is
never called, and the signal mask is not restored, and
so further SIGINTs do not trigger the handler.

I have to use ed on some systems and this problem is a
real pain.

Claudio


=====
---------------------------------------------------------------
Claudio Fontana - contacts
web: cmdftp.sourceforge.net/cfontana/
general purpose: sick_soul at yahoo d0t it
free sw development: sick_soul at users dOt sourceforge d0t net
university: claudio.fontana at studenti d0t unitn d0t it
itc/irst: cfontana at itc d0t it


                
___________________________________
Scopri Mister Yahoo! - il fantatorneo sul calcio di Yahoo! Sport
http://it.seriea.fantasysports.yahoo.com/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]