diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-08-16 09:21:38 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-08-16 09:21:38 -0400 |
commit | e130daf99c1828c554c27d546274712624b81faa (patch) | |
tree | 5e6ae50d0105efe20e490365c36354eeda6e9577 /src/eval.c | |
parent | 9b8cf46c2703150b77cf9c2ce957d0404231e794 (diff) | |
download | bfs-e130daf99c1828c554c27d546274712624b81faa.tar.xz |
eval: Remove info_hook from callback_args
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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; |