tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: snprintf(3) and friends async-signal safety?

On Thu, Dec 23, 2010 at 01:11:33AM +0100, Jean-Yves Migeon wrote:
  | Why mark SIGINFO without SA_RESTART? Reads may fail with EINTR.

Generally it's easier to write portable code that doesn't depend
upon SA_RESTART behaviour, and just deal with EINTR in the
read and write loops.

(This is a change I've been "going to do" in ftp's progressbar
for a few years)

Attachment: pgpu7BPKUadSh.pgp
Description: PGP signature

Home | Main Index | Thread Index | Old Index