src/thread/pthread/SDL_systhread.c
changeset 5510 55519e27e5d1
parent 5509 5b1b4d820d10
child 5513 0a72c9c29099
     1.1 --- a/src/thread/pthread/SDL_systhread.c	Fri Mar 25 12:44:06 2011 -0700
     1.2 +++ b/src/thread/pthread/SDL_systhread.c	Fri Mar 25 12:54:21 2011 -0700
     1.3 @@ -111,6 +111,9 @@
     1.4          value = 0;
     1.5      }
     1.6      if (setpriority(PRIO_PROCESS, syscall(SYS_gettid), value) < 0) {
     1.7 +        /* Note that this fails if you're trying to set high priority
     1.8 +           and you don't have root permission. BUT DON'T RUN AS ROOT!
     1.9 +         */
    1.10          SDL_SetError("setpriority() failed");
    1.11          return -1;
    1.12      }