zsh-workers
 help / color / mirror / code / Atom feed
* Fix for zsh signal problems with Slakware
@ 1995-10-14  7:57 Seth M. LaForge
  1995-10-15 17:02 ` Richard Coleman
  0 siblings, 1 reply; 2+ messages in thread
From: Seth M. LaForge @ 1995-10-14  7:57 UTC (permalink / raw)
  To: zsh-workers

Under newer versions of slakware, zsh has the really annoying habit of
totally freezing whenever a child process gets a signal.  I've finally
found the cause.

The problem is that zsh tries to generate signames.h, a list of signal
names, from /usr/include/linux/signal.h.  In recent releases of
slakware, /usr/include/linux/signal.h consists solely of 
#include <asm/signal.h>.  Thus signames.h contains no signal names,
and zsh runs off the end of the signal name array when trying to look
up a signal name.

The solution: change lines 357-360 (in 2.6-beta10) of configure.in
from:

for SIGNAL_H in /usr/include/bsd/sys/signal.h   dnl Next
                /usr/include/linux/signal.h     dnl Linux
                /usr/include/sys/signal.h       dnl Almost everybody else
                /dev/null;                      dnl Just in case we fall through

to:

for SIGNAL_H in /usr/include/bsd/sys/signal.h   dnl Next
                /usr/include/asm/signal.h       dnl Newer Linux
                /usr/include/linux/signal.h     dnl Linux
                /usr/include/sys/signal.h       dnl Almost everybody else
                /dev/null;                      dnl Just in case we fall through

It would be even better to also have configure spit out an error if it
cannot find a signal.h which actually has some signals defined, but
that's a little more work.

This problem is also present in 2.5.03, and the fix should be the
same.

Seth


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Fix for zsh signal problems with Slakware
  1995-10-14  7:57 Fix for zsh signal problems with Slakware Seth M. LaForge
@ 1995-10-15 17:02 ` Richard Coleman
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Coleman @ 1995-10-15 17:02 UTC (permalink / raw)
  To: Seth M. LaForge; +Cc: zsh-workers

> Under newer versions of slakware, zsh has the really annoying habit of
> totally freezing whenever a child process gets a signal.  I've finally
> found the cause.
> 
> The problem is that zsh tries to generate signames.h, a list of signal
> names, from /usr/include/linux/signal.h.  In recent releases of
> slakware, /usr/include/linux/signal.h consists solely of 
> #include <asm/signal.h>.  Thus signames.h contains no signal names,
> and zsh runs off the end of the signal name array when trying to look
> up a signal name.

This problem has already been fixed in the baseline zsh sources and will
show up in the next beta release (whenever that is).  I've given up
guessing when that will be.

Richard Coleman
coleman@math.gatech.edu


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1995-10-15 17:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1995-10-14  7:57 Fix for zsh signal problems with Slakware Seth M. LaForge
1995-10-15 17:02 ` Richard Coleman

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).