[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Nano-devel] Signal safety Issue
From: |
Daniel Kozovsky |
Subject: |
[Nano-devel] Signal safety Issue |
Date: |
Fri, 27 Jul 2018 06:06:23 -0400 (EDT) |
In ‘nano.c‘ line 1294 in signal handler ‘do_continue‘ is used function
ungetch(KEY_FLUSH). I believe that this function is not asynchronous-safe, so
it should not be used in signal handler.
Also in text.c line 1107 in signal handler ‘cancel_command‘ is used function
nperror("kill"). This function calls function perror, which is
asynchronous-unsafe, so this also should not be used in signal handler.
I am sorry, if it is not a bug,
thank you.
- [Nano-devel] Signal safety Issue,
Daniel Kozovsky <=