home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!wupost!darwin.sura.net!convex!constellation!munnari.oz.au!mel.dit.csiro.au!yarra!bohra.cpg.oz.au!als
- From: als@bohra.cpg.oz.au (Anthony Shipman)
- Newsgroups: comp.sys.hp
- Subject: signal behaviour differs between hp9000 machines
- Message-ID: <1992Jul30.085325.26753@bohra.cpg.oz.au>
- Date: 30 Jul 92 08:53:25 GMT
- Organization: Computer Power Software
- Lines: 20
-
- I was exploring floating point exceptions the other day and found that
- the HP9000/800 and HP9000/400 have a serious difference in the way signal
- handlers work.
-
- The test program does a divide by 0. The signal handler prints a message,
- reenables the signal handler and returns to the program.
-
- On the /400 this works fine. The program continues with the next instruction.
- On the /800 the divide instruction is restarted and another exception is
- raised, resulting in an infinite loop.
-
- This can make programs that manipulate signals non-portable even within HP-UX.
- Is there any standard for this behaviour?
-
-
- --
- Anthony Shipman "You've got to be taught before it's too late,
- CP Software Export Pty Ltd, Before you are six or seven or eight,
- 19 Cato St., East Hawthorn, To hate all the people your relatives hate,
- Melbourne, Australia, 3121 You've got to be carefully taught." R&H
-