Skip to content
  • Daniel Drake's avatar
    Add check_cloexec_fds debug command · 49d8ff38
    Daniel Drake authored and Florian Müllner's avatar Florian Müllner committed
    Add a debug command (to be executed manually via Alt+F2) to check
    that all of gnome-shell's file descriptors have the CLOEXEC flag set.
    This is important so that internal file descriptors do not get passed
    to apps when they are launched.
    
    It prints a warning message for every fd that does not have the flag set.
    
    fdwalk() is used from the standard library if available (it is not
    available in glibc), otherwise we use the same implementation as glib
    has internally.
    
    GNOME/gnome-shell!132
    49d8ff38