xsecurelock  1.7.0
XSecureLock is an X11 screen lock utility.
Functions
pgrp_placeholder.c File Reference
#include <stdlib.h>
#include <unistd.h>

Functions

int main ()
 Process group placeholder. More...
 

Function Documentation

◆ main()

int main ( )

Process group placeholder.

Does nothing except sitting around until killed. Spawned as extra process in our process groups so that we can control on our own when the process group ID is reclaimed to the kernel, namely by killing the entire process group. This prevents a race condition of our process group getting reclaimed before we try to kill possibly remaining processes in it, after which we would possibly kill something else.

Must be a separate executable so F_CLOEXEC applies as intended.