summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-08-16 09:21:38 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-08-16 09:21:38 -0400
commite130daf99c1828c554c27d546274712624b81faa (patch)
tree5e6ae50d0105efe20e490365c36354eeda6e9577 /src
parent9b8cf46c2703150b77cf9c2ce957d0404231e794 (diff)
downloadbfs-e130daf99c1828c554c27d546274712624b81faa.tar.xz
eval: Remove info_hook from callback_args
Diffstat (limited to 'src')
-rw-r--r--src/eval.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/eval.c b/src/eval.c
index 90d9d37..d139ed3 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -1380,8 +1380,6 @@ struct callback_args {
struct bfs_bar *bar;
/** The time of the last status update. */
struct timespec last_status;
- /** SIGINFO hook. */
- struct sighook *info_hook;
/** Flag set by SIGINFO hook. */
atomic bool info_flag;
@@ -1670,7 +1668,7 @@ int bfs_eval(struct bfs_ctx *ctx) {
#else
int siginfo = SIGUSR1;
#endif
- args.info_hook = sighook(siginfo, eval_siginfo, &args, SH_CONTINUE);
+ struct sighook *info_hook = sighook(siginfo, eval_siginfo, &args, SH_CONTINUE);
struct trie seen;
if (ctx->unique) {
@@ -1739,7 +1737,7 @@ int bfs_eval(struct bfs_ctx *ctx) {
trie_destroy(&seen);
}
- sigunhook(args.info_hook);
+ sigunhook(info_hook);
bfs_bar_hide(args.bar);
return args.ret;