[ Version ( since = "1.11.18" ) ]
public bool set_pgroup (bool pgroup) throws Error
set process group flag
If pgroup
is true, child processes are placed into their own process group.
The practical upshot of this is that signals like SIGINT
(from users pressing "^C") won't be received by the child process.
The default for this flag is false, because usually you want "^C" to kill the subprocess. Guestfish sets this flag to true when used interactively, so that "^C" can cancel long-running commands gracefully (see user_cancel).
this |
A GuestfsSession object |
true on success, false on error |