Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:eeich:BootPrj
xorg-x11
xinit-client-session.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File xinit-client-session.patch of Package xorg-x11
Index: xinit-1.1.1/xinit.c =================================================================== --- xinit-1.1.1.orig/xinit.c +++ xinit-1.1.1/xinit.c @@ -761,11 +761,21 @@ startClient(char *client[]) { setWindowPath(); if ((clientpid = vfork()) == 0) { + int fd; if (setuid(getuid()) == -1) { Error("cannot change uid: %s\n", strerror(errno)); _exit(ERR_EXIT); } - setpgid(0, getpid()); + fd = open ("/dev/null", O_RDONLY); + + if (fd < 0) { + Error("cannot open /dev/null: %s\n", strerror(errno)); + _exit(ERR_EXIT); + } + close (STDIN_FILENO); + dup2 (fd, STDIN_FILENO); + close (fd); + setsid(); environ = newenviron; #ifdef __UNIXOS2__ #undef environ
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor