Ignore:
Timestamp:
Nov 14, 2016, 12:25:18 PM (8 years ago)
Author:
ldelgass
Message:

Merge fixes from nanoscale trunk (minus the config parser changes)

Location:
nanoscale/branches/1.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • nanoscale/branches/1.0

  • nanoscale/branches/1.0/server.c

    r6505 r6622  
    548548                        serverPtr->name, getpid());
    549549                    if (serverPtr->logStdout) {
    550                         newFd = open(path, O_WRONLY | O_CREAT| O_TRUNC, 0600);
     550                        newFd = open(path, O_WRONLY | O_CREAT | O_TRUNC, 0600);
    551551                    } else {
    552552                        newFd = open("/dev/null", O_WRONLY, 0600);
     
    639639                display[3] = screenNum + '0';
    640640                setenv("DISPLAY", display, 1);
    641                 /* Set the enviroment, if necessary. */
     641                /* Don't pollute child's environment with our library path.
     642                 * Library path should be explicitly set in config if needed.
     643                 */
     644                unsetenv("LD_LIBRARY_PATH");
     645                /* Set the configured environment */
    642646                for (i = 0; i < serverPtr->numEnvArgs; i += 2) {
    643647                    setenv(serverPtr->envArgs[i], serverPtr->envArgs[i+1], 1);
Note: See TracChangeset for help on using the changeset viewer.