The system primitive is intended to be like a __collect_safe foreign call, allowing other threads to perform a collection while waiting for the shell command to return. Its shell-command argument is allocated, however, so system needs a copy of its argument while its thread is deactivated.
The
system
primitive is intended to be like a__collect_safe
foreign call, allowing other threads to perform a collection while waiting for the shell command to return. Its shell-command argument is allocated, however, sosystem
needs a copy of its argument while its thread is deactivated.