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

Re: SIGINT handling



On Apr 19, 14:12, Scott C. Gray wrote:
> Subject: SIGINT handling
| 
| Is it normal behaviour for an interactive es shell to exit after receiving two 
| interrupt signals?  They don't even have to be consecutive, I can do the 
| following:
| 
|      ; ^C
|      ; ls
|      ...
|      ; ^C
|      (shell exits)
| 
| I am using es-0.84, on HP-UX 9.0.5, compiled with '-Ae +ESlit +O3 -DHPUX'.

In signal.c we find the lines

/* catcher -- catch (and defer) a signal from the kernel */
static void catcher(int sig) {
#if SYSV_SIGNALS /* only do this for unreliable signals */
	signal(sig, catcher);
#endif

maybe SYSV_SIGNALS ought to be true for HPUX systems?  Try adding the lines

#ifndef	SYSV_SIGNALS
#define	SYSV_SIGNALS		1
#endif

after the line saying

#if HPUX

and tell ut how it worked out.

- Harald