Hello!
I am new to freebsd and I'm trying to "migrate" one of my linux applications.
The app spawns a child with clone() and the child has its own private mounts namespace - it mounts filesystems and when it "dies" the mounted filesystems are gone too (does not leave mounted filesystems behind).
I wonder what is the equivalent of clone() on freebsd as fork() gives the child no private namespace, but a shared one, and when the child dies it leaves mounted filesystems behind.
Thanks for your help!
Boyko
I am new to freebsd and I'm trying to "migrate" one of my linux applications.
The app spawns a child with clone() and the child has its own private mounts namespace - it mounts filesystems and when it "dies" the mounted filesystems are gone too (does not leave mounted filesystems behind).
I wonder what is the equivalent of clone() on freebsd as fork() gives the child no private namespace, but a shared one, and when the child dies it leaves mounted filesystems behind.
Thanks for your help!
Boyko