diff options
| author | Arkadiusz Hiler <arkadiusz.hiler@intel.com> | 2019-07-09 15:23:44 +0300 |
|---|---|---|
| committer | Arkadiusz Hiler <arkadiusz.hiler@intel.com> | 2019-07-22 13:50:50 +0300 |
| commit | ee5c833550eef5424fd3546433a0ea67869d24c5 (patch) | |
| tree | 552a1f256c07f191b40ed43261054fa90ccbdf8b /runner | |
| parent | 27002e4fe948abde54e7bcc8d29e43b60ca584dc (diff) | |
runner: Warn when watchdogs are being closed from the exit handler
instead of being closed normally on a graceful code path
Cc: Petri Latvala <petri.latvala@intel.com>
Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Reviewed-by: Simon Ser <simon.ser@intel.com>
Reviewed-by: Petri Latvala <petri.latvala@intel.com>
Diffstat (limited to 'runner')
| -rw-r--r-- | runner/executor.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/runner/executor.c b/runner/executor.c index af02c5a8..6463ab96 100644 --- a/runner/executor.c +++ b/runner/executor.c @@ -43,6 +43,9 @@ static void close_watchdogs(struct settings *settings) if (settings && settings->log_level >= LOG_LEVEL_VERBOSE) printf("Closing watchdogs\n"); + if (settings == NULL && watchdogs.num_dogs != 0) + fprintf(stderr, "Closing watchdogs from exit handler!\n"); + for (i = 0; i < watchdogs.num_dogs; i++) { __close_watchdog(watchdogs.fds[i]); } |
