From 2b3aadb6afb2b7cd1031ce0559746cda4074a89a Mon Sep 17 00:00:00 2001 From: tokyo4j Date: Thu, 2 Oct 2025 14:43:25 +0900 Subject: [PATCH] labnag: s/LAB_EXIT_TIMEOUT/LAB_EXIT_CANCELLED/ --- clients/labnag.c | 2 +- include/action-prompt-codes.h | 2 +- src/action.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/clients/labnag.c b/clients/labnag.c index 23e0be1f..c9566328 100644 --- a/clients/labnag.c +++ b/clients/labnag.c @@ -1233,7 +1233,7 @@ nag_run(struct nag *nag) wl_display_cancel_read(nag->display); } if (nag->pollfds[FD_TIMER].revents & POLLIN) { - exit_status = LAB_EXIT_TIMEOUT; + exit_status = LAB_EXIT_CANCELLED; break; } if (nag->pollfds[FD_SIGNAL].revents & POLLIN) { diff --git a/include/action-prompt-codes.h b/include/action-prompt-codes.h index d1ca0f05..68d1b066 100644 --- a/include/action-prompt-codes.h +++ b/include/action-prompt-codes.h @@ -3,7 +3,7 @@ #define LABWC_ACTION_PROMPT_CODES_H #define LAB_EXIT_FAILURE 255 -#define LAB_EXIT_TIMEOUT 254 +#define LAB_EXIT_CANCELLED 254 #define LAB_EXIT_SUCCESS 0 #endif /* LABWC_ACTION_PROMPT_CODES_H */ diff --git a/src/action.c b/src/action.c index a78b01e8..a351160d 100644 --- a/src/action.c +++ b/src/action.c @@ -934,7 +934,7 @@ action_check_prompt_result(pid_t pid, int exit_code) if (exit_code == LAB_EXIT_SUCCESS) { wlr_log(WLR_INFO, "Selected the 'then' branch"); actions = action_get_actionlist(prompt->action, "then"); - } else if (exit_code == LAB_EXIT_TIMEOUT) { + } else if (exit_code == LAB_EXIT_CANCELLED) { /* no-op */ } else { wlr_log(WLR_INFO, "Selected the 'else' branch");