|
|
|
|
|
by nyrikki
623 days ago
|
|
> posix_spawn() now accepts None for the env argument, which makes the newly spawned process use the current process environment That is the thing about fork(), spawn(), and even system() being essential wrappers around clone() in glibc and musl. You can duplicate the behavior of fork() without making the default painful for everyone else. In musl systems() calls posix_spawn() which calls clone(). All that changes is replacing a legacy call fork() that is nothing more than a legacy convenience alias with real issues and foot guns with multiple threads. |
|