creating environment variable
I have two c programs, one is a daemon, and the other reads some system information that varies over time and stores it in a environment variable. I want the daemon to read a specific environment variable in which is stored the information updated by the other program.
I would like to know, how to create my own environment variable, and if two programs are serialized in terms of access to the same environment variable. Note only one program reads the variable and only one program writes to the environment variable.
Thanks in advance.