mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Doug McNaught <doug@wireboard.com>
To: Daniel Podlejski <underley@underley.eu.org>
Cc: Linux Kernel List <linux-kernel@vger.kernel.org>
Subject: Re: Incorect signal handling ?
Date: 12 Apr 2001 17:56:37 -0400	[thread overview]
Message-ID: <m3r8yxrdd6.fsf@belphigor.mcnaught.org> (raw)
In-Reply-To: <20010412223128.A11625@witch.underley.eu.org>
In-Reply-To: Daniel Podlejski's message of "Thu, 12 Apr 2001 22:31:28 +0200"

Daniel Podlejski <underley@underley.eu.org> writes:

> Hi,
> 
> there is litlle programm:
> 
> 	signal (SIGALRM, empty);
> 	alarm (1);
> 
>         a = read(fd, buf, 511);
> 
>         while (a && a != -1) a = read(fd, buf, 511);

> I open /tmp/nic and run compiled program.
> There should be error EINTR in read, but isn't.

"Fast" system calls (eg reads from disk) are generally
uninterruptible; thus the signal will be deferred until the read()
returns.

-Doug

      parent reply	other threads:[~2001-04-12 21:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-12 20:31 Daniel Podlejski
2001-04-12 21:27 ` Richard B. Johnson
2001-04-12 21:56 ` Doug McNaught [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3r8yxrdd6.fsf@belphigor.mcnaught.org \
    --to=doug@wireboard.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=underley@underley.eu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®