summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/syscalls.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-01-12 18:05:07 +0000
committerChristopher Faylor <me@cgf.cx>2005-01-12 18:05:07 +0000
commit48befd8305960ebde647a9974726d1b5b43a6e8c (patch)
tree6fef9b92df27f70c6bc3a40715565ef462257b8f /winsup/cygwin/syscalls.cc
parent2538a7ff9b5b6d1b196df0ccecb17b72276483f8 (diff)
downloadcygnal-48befd8305960ebde647a9974726d1b5b43a6e8c.tar.gz
cygnal-48befd8305960ebde647a9974726d1b5b43a6e8c.tar.bz2
cygnal-48befd8305960ebde647a9974726d1b5b43a6e8c.zip
* pinfo.cc (pinfo::exit): Don't assume that this == myself.
Diffstat (limited to 'winsup/cygwin/syscalls.cc')
-rw-r--r--winsup/cygwin/syscalls.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc
index a9583ed1e..889d0c782 100644
--- a/winsup/cygwin/syscalls.cc
+++ b/winsup/cygwin/syscalls.cc
@@ -1407,7 +1407,7 @@ system (const char *cmdstring)
command[2] = cmdstring;
command[3] = (const char *) NULL;
- if ((res = spawnvp (_P_SYSTEM, "sh", command)) == -1)
+ if ((res = spawnvp (_P_SYSTEM, "/bin/sh", command)) == -1)
{
// when exec fails, return value should be as if shell
// executed exit (127)