X-Git-Url: http://git.tdb.fi/?p=gldbg.git;a=blobdiff_plain;f=source%2Fgldbg.cpp;h=34e616f4ac37caa5d30da1708892206bc3dea597;hp=d2ca85e6212b76cda3c1828e683e5462e122f9c0;hb=2f49929fc383eab718b5fb64d966535b753e7024;hpb=c0ba680779ab15fe46442765fb7cf136aadfda65 diff --git a/source/gldbg.cpp b/source/gldbg.cpp index d2ca85e..34e616f 100644 --- a/source/gldbg.cpp +++ b/source/gldbg.cpp @@ -66,9 +66,9 @@ void GlDbg::launch() close(fds[1]); } -void GlDbg::quit() +void GlDbg::quit(bool force) { - if(process.get_state()!=Process::INACTIVE) + if(!force && process.get_state()!=Process::INACTIVE) throw InvalidState("Program is still running"); exit(0); }