aristanetworks / bst

A one-stop shop for process isolation
MIT License
101 stars 9 forks source link

Add --debug to help debug unexpected inner process failures #1

Closed kduda closed 4 years ago

kduda commented 4 years ago

Works by inserting an intermediate fork() before exec'ing argv, and then waiting. If the inner process calls exit(0), then the intermediate process just calls exit(0) as well. If not, then the intermediate process forks again, exec's /bin/sh, waits, and then propagates the first inner process' exit status.