Skip to content

Commit

Permalink
Fix: sbd-inquisitor: Do not use watchdog if the conflicting options "…
Browse files Browse the repository at this point in the history
…-W" and "-w /dev/null" are both supplied
  • Loading branch information
gao-yan committed Jul 4, 2017
1 parent c527ba9 commit 68c73ec
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/sbd-inquisitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -1019,11 +1019,11 @@ int main(int argc, char **argv, char **envp)
}
}

if (W_count > 0) {
watchdog_use = arg_enabled(W_count);

} else if(watchdogdev == NULL || strcmp(watchdogdev, "/dev/null") == 0) {
if (watchdogdev == NULL || strcmp(watchdogdev, "/dev/null") == 0) {
watchdog_use = 0;

} else if (W_count > 0) {
watchdog_use = arg_enabled(W_count);
}

if (watchdog_use) {
Expand Down

0 comments on commit 68c73ec

Please sign in to comment.