diff --git a/visigen/MainXlib.cpp b/visigen/MainXlib.cpp index d8f38511f..333d3920d 100644 --- a/visigen/MainXlib.cpp +++ b/visigen/MainXlib.cpp @@ -254,6 +254,7 @@ int main(int argc, const char** argv) { Log.report(logvisor::Fatal, fmt("unable to make GLX context current")); XUnlockDisplay(xDisp); + UpdatePercent(0); renderer.Run(UpdatePercent); XLockDisplay(xDisp); @@ -295,7 +296,6 @@ int main(int argc, const char** argv) { } renderer.Terminate(); - pthread_cancel(clientThread.native_handle()); if (clientThread.joinable()) clientThread.join(); diff --git a/visigen/VISIBuilder.cpp b/visigen/VISIBuilder.cpp index 4bef8c277..3aa472f87 100644 --- a/visigen/VISIBuilder.cpp +++ b/visigen/VISIBuilder.cpp @@ -265,7 +265,6 @@ std::vector VISIBuilder::build(const zeus::CAABox& fullAabb, size_t mod Progress prog(updatePercent); #ifndef _WIN32 - parentPid = getppid(); auto terminate = [this, parentPid]() { return renderCache.m_renderer.m_terminate || (parentPid ? kill(parentPid, 0) : false); };