Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(build): kill chg daemon before installing
Summary: Frequently, if I have sl running when trying to upgrade sl, I get this error during `make install-oss`: ```sh $ make install-oss ... rm -f sl cp build/scripts-3.11/sl sl mkdir -p //usr/local/bin cp sl //usr/local/bin cp: cannot create regular file '//usr/local/bin/sl': Text file busy make: *** [Makefile:99: install-oss] Error 1 ``` This diff works around the issue by killing the chg daemon before installing the new version of sl. I also added a `sleep 1` after killing the chg daemon, because I was still seeing the issue occasionally without it. I really dislike adding this sleep, so I'd appreciate any suggestions Test Plan: This happens to me about 75% of the time I try to upgrade sl, but I don't have reliable reproduction steps
- Loading branch information