[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nano-devel] Signal safety Issue
From: |
Benno Schulenberg |
Subject: |
Re: [Nano-devel] Signal safety Issue |
Date: |
Mon, 30 Jul 2018 19:54:49 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 |
Op 29-07-18 om 19:49 schreef Benno Schulenberg:
> And just thinking about it a little, I think it should be possible
> to implement a fifo in an async-safe manner without much effort,
> as the get() and unget() operations work on different ends of the
> queue.
Oops! This is wrong, of course -- get() and unget() both work on the
head of the queue. So this would be tricky to get right. :|
>> 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.
Re-reported on Savannah: https://savannah.gnu.org/bugs/?54409.
Benno
signature.asc
Description: OpenPGP digital signature