summaryrefslogtreecommitdiff
path: root/usr.sbin/unbound/testcode/delayer.c
diff options
context:
space:
mode:
authorStuart Henderson <sthen@cvs.openbsd.org>2021-08-13 19:55:26 +0000
committerStuart Henderson <sthen@cvs.openbsd.org>2021-08-13 19:55:26 +0000
commitb186aed10fe44790988cd0b583f77841c91ad6ff (patch)
tree2c1fc83f53461e1bc8dc8d0bec719a0a76118d56 /usr.sbin/unbound/testcode/delayer.c
parentb8fa4b5134a93cf2d362a0475e772da7c52c6068 (diff)
import unbound 1.13.2, ok florian@
Diffstat (limited to 'usr.sbin/unbound/testcode/delayer.c')
-rw-r--r--usr.sbin/unbound/testcode/delayer.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/unbound/testcode/delayer.c b/usr.sbin/unbound/testcode/delayer.c
index 54175dbe3ec..e915961f5ae 100644
--- a/usr.sbin/unbound/testcode/delayer.c
+++ b/usr.sbin/unbound/testcode/delayer.c
@@ -347,7 +347,11 @@ static volatile int do_quit = 0;
/** signal handler for user quit */
static RETSIGTYPE delayer_sigh(int sig)
{
- printf("exit on signal %d\n", sig);
+ char str[] = "exit on signal \n";
+ str[15] = '0' + (sig/10)%10;
+ str[16] = '0' + sig%10;
+ /* simple cast to void will not silence Wunused-result */
+ (void)!write(STDOUT_FILENO, str, strlen(str));
do_quit = 1;
}