mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-10 23:03:48 +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);
|
||||
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.");
|
||||
|
Loading…
Reference in New Issue
Block a user