4 ms·
Well if you can call a syscall you don't need a named file. You can call execfd. One case where I need an executable named temp file is when I need to pass tha
by ithkuil 2y ago
Well if you can call a syscall you don't need a named file. You can call execfd.
One case where I need an executable named temp file is when I need to pass that named file to another process which in turn will call that file (so I don't have control on how that other process will call exec)
- skissane 2y ago> Well if you can call a syscall you don't need a named file. You can call execfd. Sadly you can’t exec an fd on macOS. I don’t think Apple is going to change that, because I think it causes difficulties for their security/codesigning/sandboxing infrastructure, and I think they don’t see the difficulty and risk of making it work with that as being worth the rather limited benefit