show some more info on execvp error

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4820 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2002-08-01 01:41:41 +00:00
parent 990069f546
commit 6d0158fe19
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2002-08-01 John Levon <levon@movementarian.org>
* forkedcall.C: more details on error
2002-07-29 Lars Gullik Bjønnes <larsbj@gullik.net>
* lstrings.[hC]: rename stip to rtrim and frontStrip to ltrim,

View File

@ -254,8 +254,12 @@ pid_t Forkedcall::generateChild()
pid_t cpid = ::fork();
if (cpid == 0) { // child
execvp(syscmd, argv);
// If something goes wrong, we end up here:
lyxerr << "execvp failed: "
// If something goes wrong, we end up here
string args;
int i = 0;
while (argv[i] != 0)
args += string(" ") + argv[i++];
lyxerr << "execvp of \"" << syscmd << args << "\" failed: "
<< strerror(errno) << endl;
}
#else