Environment handling on GNO
*Initialize environ on startup *Separate child process environment from parent
This commit is contained in:
parent
03a535e170
commit
a995ff4eb5
|
@ -928,6 +928,9 @@ cleanopen(char *li)
|
||||||
static void
|
static void
|
||||||
slaveproc(char *host, int autologin, char *autoname)
|
slaveproc(char *host, int autologin, char *autoname)
|
||||||
{
|
{
|
||||||
|
#ifdef __GNO__
|
||||||
|
environPush();
|
||||||
|
#endif
|
||||||
getptyslave();
|
getptyslave();
|
||||||
start_login(host, autologin, autoname);
|
start_login(host, autologin, autoname);
|
||||||
/*NOTREACHED*/
|
/*NOTREACHED*/
|
||||||
|
|
|
@ -151,6 +151,10 @@ main(int argc, char *argv[])
|
||||||
#ifdef ENCRYPTION
|
#ifdef ENCRYPTION
|
||||||
nclearto = 0;
|
nclearto = 0;
|
||||||
#endif /* ENCRYPTION */
|
#endif /* ENCRYPTION */
|
||||||
|
|
||||||
|
#ifdef __GNO__
|
||||||
|
environInit();
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This initialization causes linemode to default to a configuration
|
* This initialization causes linemode to default to a configuration
|
||||||
|
|
Loading…
Reference in New Issue