[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Nano-devel] interrupting an open() does not work with gcc
From: |
Benno Schulenberg |
Subject: |
[Nano-devel] interrupting an open() does not work with gcc |
Date: |
Thu, 23 May 2019 11:28:04 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 |
Op 17-05-19 om 08:48 schreef Brand Huntsman:
> That SIGINT code will enable ^C when reading and maybe also writing, but I
> couldn't get it to work with opening, it segfaults inside open(). It should be
> possible because open() can return EINTR if interrupted.
With attached demo patch, ^C will interrupt the open() call for me, *when*
I use clang or tcc as compiler. But with gcc... nothing happens. :|
$ clang --version | head -1
clang version 6.0.0-1ubuntu2 (tags/RELEASE_600/final)
$ tcc -v
tcc version 0.9.27 (x86_64 Linux)
$ gcc --version | head -1
gcc (Ubuntu 7.4.0-1ubuntu1~18.04) 7.4.0
Benno
interrupt-opening-of-fifo.diff
Description: Text Data
signature.asc
Description: OpenPGP digital signature
- [Nano-devel] [PATCH 1/2] files: allow a given file to be a special file but not a directory, Benno Schulenberg, 2019/05/12
- [Nano-devel] [PATCH 2/2] files: check for writability by the access bits, not by trying to append, Benno Schulenberg, 2019/05/12
- [Nano-devel] [PATCH 3/3] files: check for an empty FIFO before blocking on it, Brand Huntsman, 2019/05/14
- Re: [Nano-devel] [PATCH 3/3] files: check for an empty FIFO before blocking on it, Benno Schulenberg, 2019/05/15
- Re: [Nano-devel] [PATCH 3/3] files: check for an empty FIFO before blocking on it, Brand Huntsman, 2019/05/15
- Re: [Nano-devel] [PATCH 3/3] files: check for an empty FIFO before blocking on it, Benno Schulenberg, 2019/05/16
- Re: [Nano-devel] [PATCH 3/3] files: check for an empty FIFO before blocking on it, Brand Huntsman, 2019/05/17
- [Nano-devel] interrupting an open() does not work with gcc,
Benno Schulenberg <=
- Re: [Nano-devel] interrupting an open() does not work with gcc, Benno Schulenberg, 2019/05/23
- Re: [Nano-devel] interrupting an open() does not work with gcc, Brand Huntsman, 2019/05/23
- Re: [Nano-devel] interrupting an open() does work with gcc when flags are zeroed, Benno Schulenberg, 2019/05/23