host.rc
changeset 5 420e4af41733
parent 2 353a88ada7c6
child 8 d82829c0d867
--- a/host.rc	Tue Aug 09 00:33:56 1994 +0200
+++ b/host.rc	Tue Aug 09 00:35:25 1994 +0200
@@ -1,21 +1,32 @@
 "*
  * $Header$
+ *
+ * DONT add site specific things here - use your own h_xxx.rc file instead
+ *
  * startup configuration for host specific stuff -
  * looks for a host specific init file and loads it.
  *"
 
 |host s|
 
+(OperatingSystem getSystemType = 'hpux') ifTrue:[
+    OperatingSystem disableSignal:(OperatingSystem sigALRM)
+].
+
 host := OperatingSystem getHostName.
 host isNil ifTrue:[
-    'cannot determine host I am running on' printNewline.
+    'cannot determine host I am running on' errorPrintNewline.
 ] ifFalse:[
     "if there is a corresponding file ..."
-    ('reading host setup h_' , host , '.rc ...') printNewline.
-    s := Smalltalk systemFileStreamFor:('h_' , host , '.rc').
-    s notNil ifTrue:[
-        s fileIn.
-        s close.
+    (Smalltalk at:#'_ImageHostName') ~= host ifTrue:[
+        ('trying host setup h_' , host , '.rc ...') errorPrintNewline.
+
+        s := Smalltalk systemFileStreamFor:('h_' , host , '.rc').
+        s notNil ifTrue:[
+            s fileIn.
+            s close.
+        ].
+        Smalltalk at:#'_ImageHostName' put:host.
     ]
 ].
 !