GNU bug report logs - #44320
[PATH] [27.1] Make sure send-string-to-terminal send all contents

Previous Next

Package: emacs;

Reported by: Lin Sun <lin.sun <at> zoom.us>

Date: Thu, 29 Oct 2020 23:03:02 UTC

Severity: normal

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #74 received at 44320 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: larsi <at> gnus.org, sunlin7 <at> yahoo.com, 44320 <at> debbugs.gnu.org, lin.sun <at> zoom.us
Subject: Re: bug#44320: [PATH] [27.1] Make sure send-string-to-terminal send
 all contents
Date: Mon, 02 Nov 2020 21:26:18 +0100
On Nov 02 2020, Eli Zaretskii wrote:

> Too many subtle assumptions for my palate.  In general, stdio is not
> safe in the presence of signals.

That is true, at least if the stream is conntected to a blocking device
(file I/O is not affected by signals).

> Would it be better to suspend SIGIO by calling unrequest_sigio instead
> (and resume it once 'fwrite' returns)?

It might be even better to use POSIX I/O.

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."




This bug report was last modified 4 years and 288 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.