>I would like to see if a process (curthread->t_procp) has an environment >variable $HOME, and if so, get the value of it. > >I know it is not something the kernel usually cares about (which probably >explains why there are no examples of it) but I am testing a theory, and maybe >learn a little more about kernel internals while I am at it.
There is only one way when the kernel knows and can inspect the environment: during evecve. After execve, the process is at liberty to change the memory where the environment was copied. Casper _______________________________________________ opensolaris-code mailing list opensolaris-code@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/opensolaris-code