1 --- xinit-1.0.2/xinit.c.client-session 2006-11-10 00:24:25.000000000 -0500
2 +++ xinit-1.0.2/xinit.c 2006-11-10 00:30:42.000000000 -0500
4 startClient(char *client[])
6 if ((clientpid = vfork()) == 0) {
8 if (setuid(getuid()) == -1) {
9 Error("cannot change uid: %s\n", strerror(errno));
12 - setpgid(0, getpid());
13 + fd = open ("/dev/null", O_RDONLY);
16 + Error("cannot open /dev/null: %s\n", strerror(errno));
19 + close (STDIN_FILENO);
20 + dup2 (fd, STDIN_FILENO);