DEV Community

Discussion on: Ensuring that a shell script runs exactly once

Collapse
 
lgavel profile image
lgavel

Don't you need to first check that FD 99 has not been claimed somewhere in /proc/ before running the exec command?