[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gawk: sigpipe1.awk:7: fatal: print to "yes | true" failed: Broken pi
From: |
arnold |
Subject: |
Re: gawk: sigpipe1.awk:7: fatal: print to "yes | true" failed: Broken pipe |
Date: |
Fri, 12 Jan 2024 03:02:49 -0700 |
User-agent: |
Heirloom mailx 12.5 7/5/10 |
Hi.
Andreas Schwab <schwab@suse.de> wrote:
> On Jan 02 2024, Andrew J. Schorr wrote:
>
> > The awk gettimeofday() call should simply map to the gettimeofday()
> > system call, and systime() maps to time().
>
> The gettimeofday and time functions use different time sources with
> differing precision, so they may move to the next second at slightly
> different points.
I have just now pushed changes so that both gawk and gettimeofday()
use the same system call. clock_gettime() is preferred, then
gettimeofday(), and then time().
I note that gettimeofday() can return a value that includes
fractions of a second, whereas systime() only returns whole
seconds. That may also be part of the problem.
I will eventually try to do something else about SIGPIPE, but it's
not high on my list.
Thanks,
Arnold
- Re: gawk: sigpipe1.awk:7: fatal: print to "yes | true" failed: Broken pipe, (continued)
- Re: gawk: sigpipe1.awk:7: fatal: print to "yes | true" failed: Broken pipe, Andreas Schwab, 2024/01/02
- Re: gawk: sigpipe1.awk:7: fatal: print to "yes | true" failed: Broken pipe, Andreas Schwab, 2024/01/02
- Re: gawk: sigpipe1.awk:7: fatal: print to "yes | true" failed: Broken pipe, Andrew J. Schorr, 2024/01/02
- Re: systime() vs gettimeofday(), Andrew J. Schorr, 2024/01/02
- Re: systime() vs gettimeofday(), arnold, 2024/01/02
- Re: systime() vs gettimeofday(), Eli Zaretskii, 2024/01/02
- Re: gawk: sigpipe1.awk:7: fatal: print to "yes | true" failed: Broken pipe,
arnold <=
- Re: gawk: sigpipe1.awk:7: fatal: print to "yes | true" failed: Broken pipe, Andrew J. Schorr, 2024/01/12
- Re: gawk: sigpipe1.awk:7: fatal: print to "yes | true" failed: Broken pipe, arnold, 2024/01/13