GH-1726 better failure detection for updates
Instead of just checking if the new version started, make sure it is able to write its IPC key to a file and then use the key to connect to the process.
This commit is contained in:
parent
e974950d48
commit
69be23c5f6
11 changed files with 553 additions and 329 deletions
|
@ -4,8 +4,30 @@
|
|||
#include <InstanceList.h>
|
||||
#include <QDebug>
|
||||
|
||||
// #define BREAK_INFINITE_LOOP
|
||||
// #define BREAK_EXCEPTION
|
||||
// #define BREAK_RETURN
|
||||
|
||||
#ifdef BREAK_INFINITE_LOOP
|
||||
#include <thread>
|
||||
#include <chrono>
|
||||
#endif
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
#ifdef BREAK_INFINITE_LOOP
|
||||
while(true)
|
||||
{
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(250));
|
||||
}
|
||||
#endif
|
||||
#ifdef BREAK_EXCEPTION
|
||||
throw 42;
|
||||
#endif
|
||||
#ifdef BREAK_RETURN
|
||||
return 42;
|
||||
#endif
|
||||
|
||||
// initialize Qt
|
||||
MultiMC app(argc, argv);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue