+#ifndef _WIN32
+ signal(SIGPIPE, SIG_IGN);
+#endif
+
+#if defined(sgi)
+ flush_fpe();
+
+ // Bind all non-rendering threads to CPU1
+ // This will reduce the jitter caused by them to an absolute minimum,
+ // but it will only work with superuser authority.
+ if ( geteuid() == 0 )
+ {
+ sysmp(MP_CLOCK, 0); // bind the timer only to CPU0
+ sysmp(MP_ISOLATE, 1 ); // Isolate CPU1
+ sysmp(MP_NONPREEMPTIVE, 1 ); // disable process time slicing on CPU1
+ }
+#endif