-
Notifications
You must be signed in to change notification settings - Fork 36
Description
proc.list_procs uses the program name defined in /proc/<id>/stat to build up its process list. This causes the problem that it does not account that programs changed their argv[0] to be listed by a different cmdline.
Particularity, this behavior causes the problem that remux is not compatible with the new rm2fb version released on toltec for the update 2.6+ since rm2fb-server now uses xochitl instead of remarkable-shutdown [1]. To avoid the problem that it is listed by the wrong name it changes the cmdline to rm2fb-server [1] so that /proc/<id>/cmdline contains correctly rm2fb-server but since the underlying exe is xochitl the second value of /proc/<id>/stat is (xochitl).
This way remux assumes that xochitl --system is already started which is not correct.
I would either suggest to include a check in the process list code if the cmdline and stat differs or depend on systemctl start/stop xochitl to handle the execution and state of xochitl.