Acca-unix.170 net.games utzoo!decvax!ucbvax!z@CCA-UNIX Wed Sep 23 09:19:57 1981 Restricting game usage The solution we have adopted for restricting game usage is to have the shell run games at lower priority. For example, in our version of the C shell, we have have inserted the following code at the beginning of the texec routine in sh.exec.c: char gamename[100]; if (sindex(f, "/games/") || sindex(dcwd->di_name, "/games") && !access(strcat(strcpy(gamename, "/usr/games/"), f), 1)) nice(5); sindex is a routine which we have which returns the index of the second string in the first, or a null pointer if the second string doesn't exist in the first.