Watch mode for building the server part spawns a process which is not easily killable
The server "watch mode" script, to automatically rebuild the server part on source files changes, uses extensively &
, thus spawning background processes.
Then, the whole script is running in the background, and it is very difficult to kill it. We should either drop the need for &
to run in the background, or store PIDs in some files, to be able to stop it afterwards. Otherwise, one easily ends up with lots of onchange
processes running in the background, without noticing.
They can conflict and lead to weird behaviors easily.