Path: utzoo!attcan!uunet!husc6!bloom-beacon!tut.cis.ohio-state.edu!ucbvax!BRL.MIL!moss From: moss@BRL.MIL ("Gary S. Moss", VLD/VMB) Newsgroups: comp.sys.sgi Subject: 'cc' bug found, also ScreenLock update Message-ID: <8904040925.aa28280@VMB.BRL.MIL> Date: 4 Apr 89 13:25:57 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 21 FYI, The 'C' compiler distributed with IRIX 3.1 (Mips Computer Systems Release 1.31) has a horrible bug; returning from 'main' with 'return' always returns 0 exit status. I have no reason to think that this is unique to 3.1, Doug Gwyn says that this brain damage was probably inherited from Sun. main() { return 1; } /* results in exit status 0 */ Using 'exit' works correctly, but calling 'exit' from main goes against my principles. Does anyone know where to send software bug reports? Should I call the hotline? I have an update of ScreenLock that returns the proper error status when failing to startup (i.e. no NeWS server running). I discovered this by doing 'make test' from a Sun window without 4Sight running on the IRIS and it succeeded. Also, I have added a slight modification to support the lame cursors on the Personal IRIS (thanks to Jim Sims for trying things on his P.I.). Anyone wanting an update, please send another request. -moss