↳
In-reply-to
»
When you try to change a file thatβs currently running, it used to say
β€ Read More
text file busy
. Example:
Not sure Iβm happy with this.
Take this, for example:
https://codeberg.org/dwl/dwl/src/branch/main/Makefile#L64
The install
target of a Wayland compositor uses cp
to copy the compiled binary to your bin
directory. So, as of Linux 6.11, when you recompile this compositor and reinstall it, it will crash your entire Wayland session. π§ππ§
One way to avoid this crash is to use install instead of cp
. install
calls unlink()
before copying the data, thus avoiding this situation entirely. Not all Makefiles do that, though.