nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nano-devel] [PATCH] restore terminal and print backtrace for segfau


From: Benno Schulenberg
Subject: Re: [Nano-devel] [PATCH] restore terminal and print backtrace for segfaults and assertions
Date: Wed, 17 Jan 2018 20:08:52 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0


Op 15-01-18 om 08:59 schreef Brand Huntsman:
These patches add a segfault handler and custom assertion handler that restore
the terminal before exiting. The first patch also displays a backtrace.

With the first patch applied, nano fails to compile for me:

In file included from proto.h:24:0,
                 from browser.c:22:
browser.c: In function ‘do_browser’:
nano.h:127:2: warning: implicit declaration of function ‘tcsetattr’; did you mean ‘tcsetpgrp’? [-Wimplicit-function-declaration]
  tcsetattr(0, TCSANOW, &oldterm); \
  ^
browser.c:80:2: note: in expansion of macro ‘assert’
  assert(path != NULL && path[strlen(path) - 1] == '/');
  ^~~~~~
nano.h:127:15: error: ‘TCSANOW’ undeclared (first use in this function)
  tcsetattr(0, TCSANOW, &oldterm); \
               ^
...

Benno



reply via email to

[Prev in Thread] Current Thread [Next in Thread]