Exit without failure if instance found

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
Sebastian Ramacher 2016-01-09 15:11:48 +01:00
parent d0c1915153
commit f1d027e656

View File

@ -194,9 +194,13 @@ main(int argc, char* argv[])
}
const int ret = run_synctex_forward(synctex_fwd, argv[1], synctex_pid);
if (ret != 0) {
/* Error or instance found */
return ret;
if (ret > 0) {
/* Instance found. */
return 0;
}
else if (ret < 0) {
/* Error occurred. */
return -1;
}
girara_debug("No instance found. Starting new one.");