aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/nnn.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 5331dfd..ca1603b 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -7854,6 +7854,10 @@ int main(int argc, char *argv[])
if (sort)
set_sort_flags(sort);
+ /* Set the process group to current process */
+ setpgid(0, 0);
+ tcsetpgrp(STDOUT_FILENO, getpid());
+
opt = browse(initpath, session, pkey);
#ifndef NOMOUSE