aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-10-15 08:06:34 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-10-15 08:07:32 +0530
commitc0745727481af78f93512821aaca8484b273faa2 (patch)
tree49e629a551bd85b68fd1bab6c7ebc673f82a805b
parented53c54ba2788b17d9c02a398a1b34ab1f4dd1a5 (diff)
downloadnnn-c0745727481af78f93512821aaca8484b273faa2.tar.gz
Fix #759
-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