Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #14961

Re: write() not retried after EINTR in printf and echo

From Chet Ramey <chet.ramey@case.edu>
Newsgroups gnu.bash.bug
Subject Re: write() not retried after EINTR in printf and echo
Date 2018-12-26 12:22 -0500
Organization ITS, Case Western Reserve University
Message-ID <mailman.6321.1545844932.1284.bug-bash@gnu.org> (permalink)
References <CAFra36hm9XcAgwqr7Yp_giX+kiSEp__x4Mc5Qn=eqgUdSdLA7Q@mail.gmail.com> <eefa8e88-104a-1fd3-b505-a279778ba291@case.edu> <CAFra36izjDTTFBsRfzsgCr8YGk+n=7O=FiMVX=ivuh5Ejw5MAQ@mail.gmail.com> <996dc3ea-0718-481b-3dc7-4fd358a3a64e@case.edu> <CAFra36gB3JM3R+RWF8JGOE7PEX2D0nvoCKJqWJBxypa0TGHiRg@mail.gmail.com>

Show all headers | View raw


On 12/25/18 3:01 PM, Bize Ma wrote:

> No, that is not the intent. I merely failed to correctly convey the
> perception that others have of your code:
> 
> https://unix.stackexchange.com/a/487260/265604

That is, of course, their privilege.

> And, having failed, I am trying again.
> 
> But, probably, I should just not inform you of what others think given your
> upfront rejection to any (constructive) criticism.

The thing is, these are not new discussions. They've taken place multiple
times over the years.

>     There's a case to be made for doing
>     that, I suppose, but I'd rather defer to the system's default handling
>     for a particular signal.
> 
> 
> Do as you wish, we will still be able to form our own opinion about buggy
> code.

There's nothing wrong with people disagreeing in good faith.

Even better, you can take the code itself and make what you feel are the
necessary changes, then try them out in a real-world scenario. If you
feel that read and write should never be interrupted by a caught signal,
it should be easy enough to experiment with and verify.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
		 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

Re: write() not retried after EINTR in printf and echo Chet Ramey <chet.ramey@case.edu> - 2018-12-26 12:22 -0500

csiph-web