@RichThanks Rich, the idea to use inotifyd is because in theory (I haven't tested) it's more efficient than doing a loop, and in fact instead of checking the file I had thought to check just /proc/[pid] however I found out that inotify can't check those files because they are not real files.
@curagaI mistakenly thought busybox was small enough to be included completely.
Maybe it might be an idea to add a package to the repository called the_rest_of_busybox
(
However I currently have solved the problem differently.
I needed to check a lockfile because (again going back to the docker parenthesis), when vscode closed the window for some reason the container was killed.
Then I realized that checking the lockfile was not reliable because after a sudden close it would not be deleted, so I wanted to check the pid.
But in the end I preferred to occupy the process with a menu with a read pending which surely occupies less resources than anything else.
)