Skip to content
Snippets Groups Projects
Commit 7440aebe authored by Tristan Walter's avatar Tristan Walter
Browse files

fork, end computation

parent cf7b0550
No related branches found
No related tags found
No related merge requests found
...@@ -212,6 +212,10 @@ VideoOpener::VideoOpener() { ...@@ -212,6 +212,10 @@ VideoOpener::VideoOpener() {
return false; return false;
}); });
_file_chooser->set_on_open([this](auto){
_buffer = nullptr;
});
_file_chooser->open(); _file_chooser->open();
} }
......
...@@ -542,8 +542,12 @@ int main(int argc, char** argv) ...@@ -542,8 +542,12 @@ int main(int argc, char** argv)
#endif #endif
auto exec = wd.str() + " " + opening_result.cmd; auto exec = wd.str() + " " + opening_result.cmd;
Debug("Executing '%S'", &exec); Debug("Executing '%S'", &exec);
file::exec(exec.c_str()); auto pid = fork();
exit(0); if(pid == 0) {
file::exec(exec.c_str());
exit(0);
}
return 0;
} }
} else } else
SETTING(filename) = file::Path(); SETTING(filename) = file::Path();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment