Lines 169-174
Link Here
|
169 |
xf86Info.vtno, strerror(errno)); |
169 |
xf86Info.vtno, strerror(errno)); |
170 |
} |
170 |
} |
171 |
|
171 |
|
|
|
172 |
#if 0 |
172 |
/* |
173 |
/* |
173 |
* Grab the vt ownership before we overwrite it. |
174 |
* Grab the vt ownership before we overwrite it. |
174 |
* Hard coded /dev/tty0 into this function as well for below. |
175 |
* Hard coded /dev/tty0 into this function as well for below. |
Lines 188-193
Link Here
|
188 |
* Why is this needed?? |
189 |
* Why is this needed?? |
189 |
*/ |
190 |
*/ |
190 |
chown("/dev/tty0", getuid(), getgid()); |
191 |
chown("/dev/tty0", getuid(), getgid()); |
|
|
192 |
#endif |
191 |
|
193 |
|
192 |
/* |
194 |
/* |
193 |
* Linux doesn't switch to an active vt after the last close of a vt, |
195 |
* Linux doesn't switch to an active vt after the last close of a vt, |
Lines 302-308
Link Here
|
302 |
} |
304 |
} |
303 |
close(xf86Info.consoleFd); /* make the vt-manager happy */ |
305 |
close(xf86Info.consoleFd); /* make the vt-manager happy */ |
304 |
|
306 |
|
|
|
307 |
#if 0 |
305 |
restoreVtPerms(); /* restore the permissions */ |
308 |
restoreVtPerms(); /* restore the permissions */ |
|
|
309 |
#endif |
306 |
|
310 |
|
307 |
return; |
311 |
return; |
308 |
} |
312 |
} |