]> git.lyx.org Git - lyx.git/commit
Detect when an external command crashes
authorScott Kostyshak <skostysh@lyx.org>
Sat, 4 Apr 2015 17:39:42 +0000 (13:39 -0400)
committerScott Kostyshak <skostysh@lyx.org>
Sat, 4 Apr 2015 17:45:19 +0000 (13:45 -0400)
commit7032b0374801d7e2621c221ce43f409855a901d6
treecd1ceddcab42d4a131b55df3096c837cd5497591
parent09700d5b717baec2c34a9451ca13b09a1d47e330
Detect when an external command crashes

This fixes a situation where LyX did not detect that something went
wrong (that an external comman crashed) and reported that export was
successful. To reproduce, use the following version of LuaTeX (the
bug in LuaTeX causing the crash has since been fixed):
LuaTeX, Version beta-0.79.1 (TeX Live 2014) (rev 4971)
Then open FeynmanDiagrams.lyx and export with PDF (LuaTeX).

In the documentation [1] for QProcess::exitCode() it states:
"This value is not valid unless exitStatus() returns NormalExit."

For more information, see:
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg185317.html

[1] http://doc.qt.io/qt-5/qprocess.html#exitCode
src/support/Systemcall.cpp