From: Arun Prakash Jana Date: Thu, 15 Oct 2020 02:36:34 +0000 (+0530) Subject: Fix #759 X-Git-Tag: v3.5~32 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=c0745727481af78f93512821aaca8484b273faa2;p=nnn.git Fix #759 --- diff --git a/src/nnn.c b/src/nnn.c index 5331dfd7..ca1603bd 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