From 2b546311788ccd1a1e2685f1dd10a16c257dd946 Mon Sep 17 00:00:00 2001 From: angel Date: Mon, 30 May 2005 06:00:35 +0000 Subject: [PATCH] The forked output process detaches from the group id. git-svn-id: file:///home/angel/tmp/svn-triptico/ahxm/trunk@613 c87de0a0-a11c-0410-a1e5-866214bc28b2 --- ss_outdev.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ss_outdev.c b/ss_outdev.c index 004e511..26082f9 100644 --- a/ss_outdev.c +++ b/ss_outdev.c @@ -321,8 +321,12 @@ int ss_outdev(char * drv, char * file, int freq, int n_channels) /* forked child */ + /* closes the writing part of the pipe */ close(p[1]); + /* detaches from group */ + setpgid(0, 0); + /* find the appropriate driver */ for(n=0;drivers[n].drvname != NULL;n++) { -- 2.11.4.GIT