Re: [PATCH] signalfd: retrieve multiple signals with one read() call

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andrew Morton
Date: Sunday, May 20, 2007 - 10:12 pm

On Sun, 20 May 2007 22:05:00 -0700 (PDT) Davide Libenzi <davidel@xmailserver.org> wrote:


hm, well.  I'd suggest that we do what makes most sense, rather than
warping things to try to obey the letter of posix.


Sure.  And it'd be a bit rude to return 128 from the read() but to only
have written to a few bytes of the user's memory.

otoh, only-writing-a-few-bytes will be usefully quicker than zapping the
whole 128b, particularly on small-cacheline CPUs.

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] signalfd: retrieve multiple signals with one r ..., Andrew Morton, (Sun May 20, 10:12 pm)