diff --git a/system/src/riju-pty.c b/system/src/riju-pty.c index 0159efa..5f214b0 100644 --- a/system/src/riju-pty.c +++ b/system/src/riju-pty.c @@ -93,6 +93,8 @@ int main(int argc, char **argv) execvp(argv[0], &argv[0]); die("execvp failed"); } + if (setpgrp() < 0) + die("setpgrp failed"); int pid = no_pty ? 1 : fork(); if (pid < 0) die("fork failed");