Skip to content

Windows are not destroyed on logout

Created by: xTibor

Reproduction:

  1. Log in to the desktop with the default user account
  2. Open some apps like character_map, viewer and calendar
  3. Do not close the apps and log out
  4. Use Alt+Tab on the login screen to switch to the windows that were supposed to be destroyed

The process list shows that the apps are killed on logout yet their windows are not destroyed by Orbital:

Processes before logout
PID   PGID  PPID  RUID  RGID  RNS   EUID  EGID  ENS   STAT  CPU   MEM     NAME
1     1     0     0     0     0     0     0     0     KR    0     0 B     
2     2     0     0     0     0     0     0     0     UB    0     1 MB    initfs:/bin/init
4     2     2     0     0     0     0     0     0     UB    0     11 MB   initfs:/bin/vesad
6     2     2     0     0     0     0     0     0     UB    0     1 MB    initfs:/bin/ps2d
9     2     2     0     0     0     0     0     0     UB    0     1 MB    initfs:/bin/bgad
11    2     2     0     0     0     0     0     0     UB    0     1 MB    initfs:/bin/ahcid
13    2     2     0     0     0     0     0     0     UB    0     66 MB   initfs:/bin/redoxfs
15    2     2     0     0     0     0     0     0     UB    0     1 MB    file:/bin/nulld
17    2     2     0     0     0     0     0     0     UB    0     1 MB    file:/bin/zerod
19    2     2     0     0     0     0     0     0     UB    0     1 MB    file:/bin/randd
21    2     2     0     0     0     0     0     0     UB    0     1 MB    file:/bin/logd
23    2     2     0     0     0     0     0     0     UB    0     1 MB    file:/bin/ptyd
26    2     2     0     0     0     0     0     0     UB    0     1 MB    file:/bin/e1000d
28    2     2     0     0     0     0     0     0     UB    0     1 MB    file:/bin/ihdad
30    2     2     0     0     0     0     0     0     UB    0     2 MB    file:/bin/smolnetd
32    2     2     0     0     1     0     0     1     UB    0     1 MB    file:/bin/dnsd
36    2     2     0     0     0     0     0     0     UB    0     10 MB   file:/bin/orbital
38    2     2     0     0     1     0     0     1     UB    0     2 MB    file:/bin/getty
40    2     38    0     0     1     0     0     1     UB    0     2 MB    file:/bin/login
41    2     2     0     0     1     0     0     1     UB    0     2 MB    file:/bin/getty
42    2     41    0     0     1     0     0     1     UB    0     2 MB    file:/bin/login
43    2     36    0     0     1     0     0     1     UB    0     12 MB   file:/ui/bin/orblogin
44    2     43    1000  1000  1     1000  1000  1     UB    0     3 MB    file:/ui/bin/launcher
45    2     44    1000  1000  1     1000  1000  1     UB    0     11 MB   file:/ui/bin/background
46    2     44    1000  1000  1     1000  1000  1     UB    0     3 MB    file:/ui/bin/character_map
47    2     44    1000  1000  1     1000  1000  1     UB    0     12 MB   file:/ui/bin/viewer
48    2     44    1000  1000  1     1000  1000  1     UB    0     3 MB    file:/ui/bin/calendar
49    49    42    1000  1000  1     1000  1000  1     UB    0     3 MB    file:/bin/ion
50    49    49    1000  1000  1     1000  1000  1     US    0     3 MB    file:/bin/ion
51    51    49    1000  1000  1     1000  1000  1     UR+   0     1 MB    file:/bin/ps
Processes after logout
PID   PGID  PPID  RUID  RGID  RNS   EUID  EGID  ENS   STAT  CPU   MEM     NAME
1     1     0     0     0     0     0     0     0     KR    0     0 B     
2     2     0     0     0     0     0     0     0     UB    0     1 MB    initfs:/bin/init
4     2     2     0     0     0     0     0     0     UB    0     11 MB   initfs:/bin/vesad
6     2     2     0     0     0     0     0     0     UB    0     1 MB    initfs:/bin/ps2d
9     2     2     0     0     0     0     0     0     UB    0     1 MB    initfs:/bin/bgad
11    2     2     0     0     0     0     0     0     UB    0     1 MB    initfs:/bin/ahcid
13    2     2     0     0     0     0     0     0     UB    0     66 MB   initfs:/bin/redoxfs
15    2     2     0     0     0     0     0     0     UB    0     1 MB    file:/bin/nulld
17    2     2     0     0     0     0     0     0     UB    0     1 MB    file:/bin/zerod
19    2     2     0     0     0     0     0     0     UB    0     1 MB    file:/bin/randd
21    2     2     0     0     0     0     0     0     UB    0     1 MB    file:/bin/logd
23    2     2     0     0     0     0     0     0     UB    0     1 MB    file:/bin/ptyd
26    2     2     0     0     0     0     0     0     UB    0     1 MB    file:/bin/e1000d
28    2     2     0     0     0     0     0     0     UB    0     1 MB    file:/bin/ihdad
30    2     2     0     0     0     0     0     0     UB    0     2 MB    file:/bin/smolnetd
32    2     2     0     0     1     0     0     1     UB    0     1 MB    file:/bin/dnsd
36    2     2     0     0     0     0     0     0     UB    0     13 MB   file:/bin/orbital
38    2     2     0     0     1     0     0     1     UB    0     2 MB    file:/bin/getty
40    2     38    0     0     1     0     0     1     UB    0     2 MB    file:/bin/login
41    2     2     0     0     1     0     0     1     UB    0     2 MB    file:/bin/getty
42    2     41    0     0     1     0     0     1     UB    0     2 MB    file:/bin/login
43    2     36    0     0     1     0     0     1     UB    0     12 MB   file:/ui/bin/orblogin
49    49    42    1000  1000  1     1000  1000  1     UB    0     3 MB    file:/bin/ion
50    49    49    1000  1000  1     1000  1000  1     US    0     3 MB    file:/bin/ion
52    52    49    1000  1000  1     1000  1000  1     UR+   0     1 MB    file:/bin/ps
Edited by Jacob Lorentzon