fix crash on SystemExec::Terminate
if Terminated() connects in the same thread and deletes the class itself the closure in interposer_thread() can fail.
This commit is contained in:
parent
90aec831cb
commit
eb6b4f4b15
@ -530,6 +530,7 @@ SystemExec::output_interposer()
|
|||||||
ReadStdout(data, bytesRead);/* EMIT SIGNAL */
|
ReadStdout(data, bytesRead);/* EMIT SIGNAL */
|
||||||
}
|
}
|
||||||
Terminated();/* EMIT SIGNAL */
|
Terminated();/* EMIT SIGNAL */
|
||||||
|
pthread_exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
@ -896,6 +897,7 @@ SystemExec::output_interposer()
|
|||||||
ReadStdout(rv, r);/* EMIT SIGNAL */
|
ReadStdout(rv, r);/* EMIT SIGNAL */
|
||||||
}
|
}
|
||||||
Terminated();/* EMIT SIGNAL */
|
Terminated();/* EMIT SIGNAL */
|
||||||
|
pthread_exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user