Subject: Re: bug#44320: [PATH] [27.1] Make sure send-string-to-terminal send all contents

From: Andreas Schwab <[email-masked]>
Date: Mon, 02 Nov 2020 16:49:49 +0100

On Nov 02 2020, Eli Zaretskii wrote:

>> Date: Mon, 2 Nov 2020 11:11:22 +0800
>> From: LinSun <[email-masked]>
>> Cc: "[email-masked]" <[email-masked]>
>> 
>> Attach the log file ` testing-strace-2.log.gz` with a line more which may be a import hints.
>> 
>> write(6, "…", 256) = ? ERESTARTSYS (To be restarted if SA_RESTART is set)
>
> Thanks.
>
> I don't think I know how to interpret this trace, or understand the
> significance of ERESTARTSYS.

It is translated to EINTR on signal handler return:

rt_sigreturn({mask=[]})                 = -1 EINTR (Interrupted system call)

Outside of strace, ERESTARTSYS is never observed by user-space.

Andreas.

-- 
Andreas Schwab, [email-masked]
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."