summaryrefslogtreecommitdiff
path: root/games/ccgo/patches/patch-ab
blob: c5cf39788ae2a941f67549f14556163c6921374e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$NetBSD: patch-ab,v 1.2 2005/07/22 22:13:25 adam Exp $

--- igs/fork.cc.orig	2004-09-24 02:12:22.000000000 +0000
+++ igs/fork.cc
@@ -16,6 +16,7 @@ extern "C" {
 #include <sys/fcntl.h>
 #include <sys/wait.h>
 #include <unistd.h>
+#include <signal.h>
 }
 
 using namespace igs;
@@ -139,7 +140,7 @@ bool Fork::open_conn(const std::string &
 		close(c2p[0]);
 		close(c2p[1]);
 		close(2); // close cerr
-		char * shell = "/bin/bash";
+		char * shell = "/bin/sh";
 		std::string c = std::string ("exec ") + n;
 		execl(shell, shell, "-c", c.c_str(), 0);
 		std::cerr << "Fail to fork: " << n << std::endl;