GUI window freezes when process is killed
Reproduction:
- Boot the Redox 0.5.0 harddrive.bin
- Choose any resolution (1280x1024@32 will do)
- Log in as
user
- Start a terminal inside the GUI
- Start a calculator
- Run
ps
in the terminal, find calculator PID (e.g.53
in my case) - Run
kill 9 53
- The calculator process (PID
53
) is now gone if we runps
again - However, the window is still on the desktop, it can be moved but its contents are frozen and it cannot be closed
- The same problem can be reproduced with file manager and character map (and potentially more if not all GUI applications)
- The problem can also be reproduced with signal
15
,SIGTERM
Expected behavior:
- After a successful
kill
invocation, the Window that belongs to the process is closed and its resources are freed