]>
git.proxmox.com Git - mirror_frr.git/blob - tests/lib/test_sig.c
1 // SPDX-License-Identifier: GPL-2.0-or-later
8 #include "lib/memory.h"
10 static void sighup(void)
12 printf("processed hup\n");
15 static void sigusr1(void)
17 printf("processed usr1\n");
20 static void sigusr2(void)
22 printf("processed usr2\n");
25 struct frr_signal_t sigs
[] = {{
38 struct thread_master
*master
;
43 master
= thread_master_create(NULL
);
44 signal_init(master
, array_size(sigs
), sigs
);
46 zlog_aux_init("NONE: ", LOG_DEBUG
);
48 while (thread_fetch(master
, &t
))