* pinfo.cc (pinfo::exit): Don't assume that this == myself.

This commit is contained in:
Christopher Faylor
2005-01-12 18:05:07 +00:00
parent 2538a7ff9b
commit 48befd8305
3 changed files with 6 additions and 6 deletions

View File

@ -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)