From fb30d4bdf867a100cf91e1492db6f872b41f8764 Mon Sep 17 00:00:00 2001 From: Narthorn Date: Sat, 8 Oct 2016 08:38:10 +0200 Subject: [PATCH] Initialize dns process before opening display By opening the display before the dns process is forked, the child inherits things like ncurses's handler for SIGWINCH (window resize event), which can cause it to crash and leave the parent process in an infinite select() loop, freezing the display. --- mtr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mtr.c b/mtr.c index 377283c..0acb658 100644 --- a/mtr.c +++ b/mtr.c @@ -786,8 +786,8 @@ extern int main(int argc, char **argv) lock(stdout); - display_open(&ctl); dns_open(&ctl); + display_open(&ctl); display_loop(&ctl); -- 2.47.2