diff options
author | Renato Botelho <garga@FreeBSD.org> | 2009-12-21 14:53:02 +0000 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2009-12-21 14:53:02 +0000 |
commit | 65ba6801eb5b24ce94fd59adafa379d2d41a2ae6 (patch) | |
tree | dc505a8a90a45d2235675330667734201265d372 /editors/jed/files | |
parent | 2698bcd8c264b79e44188435a75b2607296b5443 (diff) | |
download | ports-65ba6801eb5b24ce94fd59adafa379d2d41a2ae6.tar.gz ports-65ba6801eb5b24ce94fd59adafa379d2d41a2ae6.zip |
Notes
Diffstat (limited to 'editors/jed/files')
-rw-r--r-- | editors/jed/files/patch-src_unix.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/editors/jed/files/patch-src_unix.c b/editors/jed/files/patch-src_unix.c new file mode 100644 index 000000000000..c567e6d14229 --- /dev/null +++ b/editors/jed/files/patch-src_unix.c @@ -0,0 +1,24 @@ +--- src/unix.c ++++ src/unix.c +@@ -211,8 +211,19 @@ static void set_process_group (void) + { + pid_t pid = getpid (); + Startup_PGID = getpgid (pid); +- (void) tcsetpgrp (Read_FD, pid); +- (void) setpgid (pid, pid); ++ if (-1 == tcsetpgrp (Read_FD, pid)) ++ { ++ fprintf (stderr, "tcsetpgrp failed\n"); ++ Terminal_PGID = -1; ++ return; ++ } ++ if (-1 == setpgid (pid, pid)) ++ { ++ fprintf (stderr, "setpgid failed\n"); ++ (void) tcsetpgrp (Read_FD, Startup_PGID); ++ Terminal_PGID = -1; ++ return; ++ } + } + #endif + } |