tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* interrupts and signals in DU 3.2
@ 1996-09-20  9:50 Lucio Chiappetti
  0 siblings, 0 replies; only message in thread
From: Lucio Chiappetti @ 1996-09-20  9:50 UTC (permalink / raw)
  To: tru64-unix-managers

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@IFCTR.MI.CNR.IT  |             (Rabisch, II 46, 119-120)    
----------------------------------------------------------------------------
For more info : http://www.ifctr.mi.cnr.it/~lucio/personal.html             
----------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1996-09-20  9:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-09-20  9:50 interrupts and signals in DU 3.2 Lucio Chiappetti

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox