diff --git a/src/main.c b/src/main.c
index 37c2d2451f33fe4a4540f04bac367dc08b3de316..97251c9943e4978e3409e960a7023462d585cf17 100644
--- a/src/main.c
+++ b/src/main.c
@@ -2,7 +2,7 @@
 || This file is part of Pike. For copyright information see COPYRIGHT.
 || Pike is distributed under GPL, LGPL and MPL. See the file COPYING
 || for more information.
-|| $Id: main.c,v 1.234 2008/07/31 18:13:17 mast Exp $
+|| $Id: main.c,v 1.235 2008/07/31 21:11:36 mast Exp $
 */
 
 #include "global.h"
@@ -559,7 +559,7 @@ int main(int argc, char **argv)
 		  /* Maybe set this too? Don't know exactly when it
 		   * has effect. /mast */
 		  /*SEM_NOOPENFILEERRORBOX | */
-		  GetErrorMode());
+		  SetErrorMode (0));
   }
 #endif