aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/outcome/shim-signal.h
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-10-30 00:46:23 +0900
committerOphestra <cat@gensokyo.uk>2025-10-30 01:20:51 +0900
commiteeb9f98e5bd9d4fac6706edb87d06bf757f0fb79 (patch)
tree5417d1c2e18d87be6d5d6a90db7d6f8a4546ba5d /internal/outcome/shim-signal.h
parent3f9f331501acc3dc367276501822ef1a260dfd24 (diff)
internal/outcome/shim: move signal constants
The magic numbers hurt readability. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/outcome/shim-signal.h')
-rw-r--r--internal/outcome/shim-signal.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/internal/outcome/shim-signal.h b/internal/outcome/shim-signal.h
index bdeae3b0..b0229a91 100644
--- a/internal/outcome/shim-signal.h
+++ b/internal/outcome/shim-signal.h
@@ -1,3 +1,11 @@
#include <signal.h>
+/* see shim.go for documentation */
+typedef enum {
+ HAKUREI_SHIM_EXIT_REQUESTED,
+ HAKUREI_SHIM_ORPHAN,
+ HAKUREI_SHIM_INVALID,
+ HAKUREI_SHIM_BAD_PID,
+} hakurei_shim_msg;
+
void hakurei_shim_setup_cont_signal(pid_t ppid, int fd);