Apparently some interrupt signals do not work in Digital Unix 3.2, tipically
the SIGINT (usually control-C) interrupt does not work.
I've been told by a colleague in another institute who is collaborating with
me that they work perfectly on DU 3.0.
Anybody has info on patches or other ways out ?
-------------
Here are my findings.
We had a Fortran-wrapper to a C-wrapper around the signal() system call which
we use to intercept a control-C (SIGINT) from a running program to trigger a
gracious termination. We have been using this on SunOS, Ultrix and HP-UX and
I'm told it also works under DU 3.0.
What happens is that the SIGINT is totally ignored, not only by our routine,
but by any program. Try to write any simple looping program and to interrupt
it with control-C ! YOU CAN'T !
program prova
I=1
1 continue
if(mod(i,200000).eq.0)write(6,*) i
x=8.1**10
I=I+1
go to 1
9 stop
end
Conversely, if I take our wrapper around signal(), and replace the SIGINT
signal with SIGTSTP (the suspend signal), I can use control-Z to graciously
terminate my program. Otherwise said, it's only the handling of SIGINT which
is broken, other signals work !
Now I know that I could do stty susp ^C and stty intr ^Z to reverse the two
signals and get the behaviour I expect at MY terminal, but I found this
extremely inelegant if I have all other users of our program do that !
Hence my request above
----------------------------------------------------------------------------
A member of G.ASS : Group for Astronomical Software Support
----------------------------------------------------------------------------
Lucio Chiappetti - IFCTR/CNR | Ma te' vugl' da' quost avis a ti' Orsign
via Bassini 15 - I-20133 Milano | Buttet rabios intant te se' pisnign
Internet: LUCIO_at_IFCTR.MI.CNR.IT | (Rabisch, II 46, 119-120)
----------------------------------------------------------------------------
For more info :
http://www.ifctr.mi.cnr.it/~lucio/personal.html
----------------------------------------------------------------------------
Received on Fri Sep 20 1996 - 12:08:44 NZST