-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Hello!
I was following your post on containers and (of course) the code is not fully portable. For example the clone() function is not available in OS X, I tried to implement something similar using pthread, but again when it comes to clear environment variables (using environ = NULL; because celarenv() is also not available) not all of them are cleared. PWD remains, for example, and there is also a variable _ that cannot be cleared...
I assume there is some way to make OS X clear these variables, and also a way equivalent to your use of signals in clone() to achieve several things through your post. I have been skimming a bit through the internet (and even the Apple Developer site) to no avail. There must be some OS X specific libraries or something.
Do you have any clue of where should I begin looking into this? Of course I can set a VM and check your code as is, but I want to tackle this challenge. Thanks in advance!