summaryrefslogtreecommitdiffstats
path: root/audio/ripperx/files/patch-src-ripper_encoder_manipulation.c
blob: 1e586600457242c123f2fbeba1c51ca2b15b5710 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--- src/ripper_encoder_manipulation.c.orig	2008-02-02 18:51:29.000000000 +0100
+++ src/ripper_encoder_manipulation.c	2008-02-22 16:15:16.000000000 +0100
@@ -16,7 +16,6 @@
 #include <fcntl.h>
 #include <sys/wait.h>
 #include <sys/ioctl.h>
-#include <pty.h>
 
 #include "ripper_encoder_manipulation.h"
 #include "misc_utils.h"
@@ -335,7 +334,7 @@
 		dup2( pty_fd0, 0 );
 		dup2( tty_fd1, 1 );
 
-		setpgrp();
+		setpgid(0, 0);
 		execvp( plugin_argv[ 0 ], plugin_argv );
 
 		dup2( stderr_fd, 2 );
@@ -368,7 +367,7 @@
 		dup2( tty_fd0, 1 );
 		dup2( tty_fd0, 2 );
 
-		setpgrp();
+		setpgid(0, 0);
 		execvp( program_argv[ 0 ], program_argv );
 
 		dup2( stderr_fd, 2 );
OpenPOWER on IntegriCloud