XQuartz: Unset CFProcessPath... blech

(cherry picked from commit ce4fbfbc75)
This commit is contained in:
Jeremy Huddleston 2008-04-28 15:52:24 -07:00
parent 0c2312b21b
commit d5ab89f4f1

View File

@ -98,6 +98,12 @@ int main(int argc, char **argv, char **envp) {
int i;
int fd[2];
/* Unset CFProcessPath, so our children don't inherit this kludge we need
* to load our nib. If an xterm gets this set, then it fails to
* 'open hi.txt' properly.
*/
unsetenv("CFProcessPath");
// Make a pipe to pass events
assert( pipe(fd) == 0 );
darwinEventReadFD = fd[0];