From c0745727481af78f93512821aaca8484b273faa2 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Thu, 15 Oct 2020 08:06:34 +0530 Subject: Fix #759 --- src/nnn.c | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.3-70-g09d2