*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
block_sigchld(); /* This blocks it in the parent and child, to avoid
racing. It is never unblocked in the child before
the child exits, but that doesn't matter.
block_sigchld(); /* This blocks it in the parent and child, to avoid
racing. It is never unblocked in the child before
the child exits, but that doesn't matter.
hack_subproc_environment (screen, 0); /* set $DISPLAY */
execvp (av[0], av); /* shouldn't return. */
hack_subproc_environment (screen, 0); /* set $DISPLAY */
execvp (av[0], av); /* shouldn't return. */
/* Wait for the child to die. */
waitpid (-1, &wait_status, 0);
/* Wait for the child to die. */
waitpid (-1, &wait_status, 0);