mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-27 15:46:00 +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
1 changed files with 7 additions and 3 deletions
|
@ -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 a new issue