[comp.lang.icon] Exit codes in SunOS 4.1

soder@inmic.se (Hakan Soderstrom) (12/17/90)

Has anybody else noticed this:

Problem: Icon programs return spurious (?) exit codes under
recent versions of SunOS. When terminating normally the exit
code is an unpredictable small integer, sometimes even
negative (as reported by /bin/csh).

The problem didn't appear until I ported some software we
developed to SunOS 4.0.1 for the Sun 386i. Now the same
symptom appears when porting the software to a SPARCstation
1+ under SunOS 4.1. (The 4.0.1 for the 386i is more similar
to 4.1 than 4.0.3 for the SPARC.)

My conclusion from browsing the Icon source is that even a
'procedure main (...)' that just flows out through its 'end'
executes a proper Unix 'exit'. Can anybody confirm that?
(Under these OSes a C program that just flows out through
its final brace does not return a predictable return code.)

Reply to me and I'll post a summary. Thanks.

	Hakan
----------------------------------------------------
Hakan Soderstrom             Phone: +46 (8) 752 1138
NMP-CAD                      Fax:   +46 (8) 750 8056
P.O. Box 1193                E-mail: soder@nmpcad.se
S-164 22 Kista, Sweden
--
----------------------------------------------------
Hakan Soderstrom             Phone: +46 (8) 752 1138
NMP-CAD                      Fax:   +46 (8) 750 8056
P.O. Box 1193                E-mail: soder@nmpcad.se
S-164 22 Kista, Sweden