Commit ceb855f2 authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen

Don't fork when there is crash handler is deactivated.

parent f4565c35
...@@ -20,6 +20,8 @@ ...@@ -20,6 +20,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/ *****************************************************************************/
#include "config.h"
#include <QtDebug> #include <QtDebug>
#include <wait.h> #include <wait.h>
...@@ -29,6 +31,7 @@ int VLMCmain( int , char** ); ...@@ -29,6 +31,7 @@ int VLMCmain( int , char** );
int main( int argc, char **argv ) int main( int argc, char **argv )
{ {
#ifdef WITH_CRASHHANDLER
while ( true ) while ( true )
{ {
pid_t pid = fork(); pid_t pid = fork();
...@@ -56,4 +59,7 @@ int main( int argc, char **argv ) ...@@ -56,4 +59,7 @@ int main( int argc, char **argv )
} }
} }
} }
#else
return VLMCmain( argc, argv );
#endif
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment