Skip to content

MacOS? #3

@DavSanchez

Description

@DavSanchez

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions