mirror of https://github.com/sipwise/ngcpcfg.git
Files that are being executed cannot be modified in place as that returns EBUSY. But their dentry can be replaced with a rename(2), which is atomic and does not touch the original inode. This is the standard procedure to replace running executables in Unix. So, we just replace the cat(1) with a mv(1), and stop quiescing its stderr so that we get proper errors reported. Change-Id: If15ea1cfa749a6140ff4022200c7fc730c76aa3achanges/79/22479/2
parent
32a6a6b62d
commit
7480ebe7c5
Loading…
Reference in new issue