--- src/unix/main.c.old	Wed Jun 17 03:17:24 1998
+++ src/unix/main.c	Thu Jul  9 06:33:37 1998
@@ -69,6 +69,26 @@
 {
 	int res;
 
+	printf("foo\n");
+#ifdef UNIX
+       /* This will make the xmame process run at full tilt, at the exclusion
+        * of all other processes on the system.  It may be needed if your
+        * system is a particularly slow one.  Xmame is very frustrating to
+        * play on my old 486DX4/133 without this hack, for example.  (It runs
+        * fine on my Pentium/133 without it.)  The only way this will have
+        * any effect is if the xmame binary is setuid to root, so if you
+        * don't want this hack, you don't need to recompile, just don't make
+        * it setuid root.  Yes, I know, setuid root programs are bad, security
+        * risks, etc. but the only thing I do while setuid is to run the
+        * nice() syscall [sets process priority to be very high], then I
+        * "revoke" my root privileges and make it a normal process.
+        */
+       if (geteuid() == 0)  {          /* are we running setuid root? */
+               nice(-20);              /* yes: make it run full tilt */
+               seteuid(getuid());      /* get rid of our root privileges */
+       }
+#endif /* UNIX */
+
 #ifdef svgalib
         /* first let's try to init svgalib */
         /* and give up those evil root rights, */
