mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-10 18:58:10 +00:00
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:
parent
990069f546
commit
6d0158fe19
@ -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>
|
2002-07-29 Lars Gullik Bjønnes <larsbj@gullik.net>
|
||||||
|
|
||||||
* lstrings.[hC]: rename stip to rtrim and frontStrip to ltrim,
|
* lstrings.[hC]: rename stip to rtrim and frontStrip to ltrim,
|
||||||
|
@ -254,8 +254,12 @@ pid_t Forkedcall::generateChild()
|
|||||||
pid_t cpid = ::fork();
|
pid_t cpid = ::fork();
|
||||||
if (cpid == 0) { // child
|
if (cpid == 0) { // child
|
||||||
execvp(syscmd, argv);
|
execvp(syscmd, argv);
|
||||||
// If something goes wrong, we end up here:
|
// If something goes wrong, we end up here
|
||||||
lyxerr << "execvp failed: "
|
string args;
|
||||||
|
int i = 0;
|
||||||
|
while (argv[i] != 0)
|
||||||
|
args += string(" ") + argv[i++];
|
||||||
|
lyxerr << "execvp of \"" << syscmd << args << "\" failed: "
|
||||||
<< strerror(errno) << endl;
|
<< strerror(errno) << endl;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user