Changeset 2983


Ignore:
Timestamp:
Apr 29, 2012 5:21:27 PM (10 years ago)
Author:
ldelgass
Message:

When setting environment for child process, overwrite existing environment (of
nanoscale). This is necessary for DISPLAY to be changed for load balancing,
since nanoscale script is setting a default DISPLAY. Also, LD_LIBRARY_PATH
was not being overwritten from the setting inherited from the rappture env
script. If we are going to the trouble to specify different environments for
the render servers in the config file, it seems we should have those settings
override the environment of nanoscale itself.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/nanoscale/server2.c

    r2656 r2983  
    461461                /* Set the screen number in the DISPLAY variable. */
    462462                display[3] = screenNum + '0';
    463                 setenv("DISPLAY", display, 0);
     463                setenv("DISPLAY", display, 1);
    464464                /* Set the enviroment, if necessary. */
    465465                for (i = 0; i < serverPtr->numEnvArgs; i += 2) {
    466                     setenv(serverPtr->envArgs[i], serverPtr->envArgs[i+1], 0);
     466                    setenv(serverPtr->envArgs[i], serverPtr->envArgs[i+1], 1);
    467467                }
    468468                INFO("Executing %s: client %s, %s on DISPLAY=%s",
Note: See TracChangeset for help on using the changeset viewer.