# Functions
PrepareEnterCmd retrieves enter argument and prepare a command list to further run a command in stage1 context.
WithClearedCloExec executes a given function in between setting and unsetting the close-on-exit flag on the given file descriptor.
WritePid writes the given pid to $PWD/{filename}.