labnag: return special value on timeout

...to avoid taking either of the <then> or <else> branches on timeout.
This commit is contained in:
Johan Malm 2025-08-09 15:15:35 +01:00 committed by Hiroaki Yamamoto
parent 073fd02300
commit 09b4e9605e
4 changed files with 16 additions and 3 deletions

View file

@ -0,0 +1,9 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef LABWC_ACTION_PROMPT_CODES_H
#define LABWC_ACTION_PROMPT_CODES_H
#define LAB_EXIT_FAILURE 255
#define LAB_EXIT_TIMEOUT 254
#define LAB_EXIT_SUCCESS 0
#endif /* LABWC_ACTION_PROMPT_CODES_H */