From: Narthorn Date: Sat, 8 Oct 2016 06:38:10 +0000 (+0200) Subject: Initialize dns process before opening display X-Git-Tag: v0.88~21^2~2^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F157%2Fhead;p=thirdparty%2Fmtr.git 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. --- 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);