mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-14 08:13:47 +01:00
Exit without failure if instance found
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
d0c1915153
commit
f1d027e656
@ -194,9 +194,13 @@ main(int argc, char* argv[])
|
|||||||
}
|
}
|
||||||
|
|
||||||
const int ret = run_synctex_forward(synctex_fwd, argv[1], synctex_pid);
|
const int ret = run_synctex_forward(synctex_fwd, argv[1], synctex_pid);
|
||||||
if (ret != 0) {
|
if (ret > 0) {
|
||||||
/* Error or instance found */
|
/* Instance found. */
|
||||||
return ret;
|
return 0;
|
||||||
|
}
|
||||||
|
else if (ret < 0) {
|
||||||
|
/* Error occurred. */
|
||||||
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
girara_debug("No instance found. Starting new one.");
|
girara_debug("No instance found. Starting new one.");
|
||||||
|
Loading…
Reference in New Issue
Block a user