Groups | Search | Server Info | Keyboard shortcuts | Login | Register


Groups > comp.lang.misc > #11288

Re: Interrupted system call on read after ~20 minutes inactivity?

From Alan Bawden <alan@csail.mit.edu>
Newsgroups comp.lang.misc, comp.lang.c
Subject Re: Interrupted system call on read after ~20 minutes inactivity?
Followup-To comp.lang.misc
Date 2025-10-03 19:33 -0400
Organization ITS Preservation Society
Message-ID <867bxb4l3a.fsf@williamsburg.bawden.org> (permalink)
References <10bpkh1$25arg$1@dont-email.me>

Cross-posted to 2 groups.

Followups directed to: comp.lang.misc

Show all headers | View raw


Janis Papanagnou <janis_papanagnou+ng@hotmail.com> writes:

   The maintainer of the Genie system told me that he has no such
   logic implemented in his tool, and he suspected the libc as the
   source of the interrupted system call.

Under Unix, pretty much _any_ call to read() needs to be prepared to
handle an EINTR.  Often all you do is just loop back and call read()
again.  It isn't libc's job to handle this for you -- you must handle it
yourself.

So in your case either the _runtime_ should be handling this for you, or
it is something that the runtime expect _you_ to handle.

-- 
Alan Bawden

Back to comp.lang.misc | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Interrupted system call on read after ~20 minutes inactivity? Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-10-04 00:59 +0200
  Re: Interrupted system call on read after ~20 minutes inactivity? scott@slp53.sl.home (Scott Lurndal) - 2025-10-03 23:31 +0000
    Re: Interrupted system call on read after ~20 minutes inactivity? Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-10-04 01:57 +0200
    Re: Interrupted system call on read after ~20 minutes inactivity? Kaz Kylheku <643-408-1753@kylheku.com> - 2025-10-04 00:28 +0000
      Re: Interrupted system call on read after ~20 minutes inactivity? Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-10-04 02:41 +0200
        Re: Interrupted system call on read after ~20 minutes inactivity? Kaz Kylheku <643-408-1753@kylheku.com> - 2025-10-04 01:07 +0000
      Re: Interrupted system call on read after ~20 minutes inactivity? richard@cogsci.ed.ac.uk (Richard Tobin) - 2025-10-04 01:04 +0000
        Re: Interrupted system call on read after ~20 minutes inactivity? Kaz Kylheku <643-408-1753@kylheku.com> - 2025-10-04 01:23 +0000
        Re: Interrupted system call on read after ~20 minutes inactivity? Kaz Kylheku <643-408-1753@kylheku.com> - 2025-10-04 01:28 +0000
          Re: Interrupted system call on read after ~20 minutes inactivity? scott@slp53.sl.home (Scott Lurndal) - 2025-10-04 02:12 +0000
        Re: Interrupted system call on read after ~20 minutes inactivity? Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-10-04 02:35 +0000
        Re: Interrupted system call on read after ~20 minutes inactivity? richard@cogsci.ed.ac.uk (Richard Tobin) - 2025-10-04 12:52 +0000
          Re: Interrupted system call on read after ~20 minutes inactivity? Kaz Kylheku <643-408-1753@kylheku.com> - 2025-10-04 18:50 +0000
  Re: Interrupted system call on read after ~20 minutes inactivity? Alan Bawden <alan@csail.mit.edu> - 2025-10-03 19:33 -0400
    Re: Interrupted system call on read after ~20 minutes inactivity? Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-10-03 23:54 +0000
    Re: Interrupted system call on read after ~20 minutes inactivity? Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-10-04 02:00 +0200
      Re: Interrupted system call on read after ~20 minutes inactivity? Alan Bawden <alan@csail.mit.edu> - 2025-10-03 20:26 -0400
        Re: Interrupted system call on read after ~20 minutes inactivity? richard@cogsci.ed.ac.uk (Richard Tobin) - 2025-10-05 11:39 +0000
          Re: Interrupted system call on read after ~20 minutes inactivity? Alan Bawden <alan@csail.mit.edu> - 2025-10-06 04:05 -0400
            Re: Interrupted system call on read after ~20 minutes inactivity? richard@cogsci.ed.ac.uk (Richard Tobin) - 2025-10-06 10:46 +0000
            Re: Interrupted system call on read after ~20 minutes inactivity? Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-10-06 22:04 +0000
  Re: Interrupted system call on read after ~20 minutes inactivity? richard@cogsci.ed.ac.uk (Richard Tobin) - 2025-10-04 00:18 +0000
    Re: Interrupted system call on read after ~20 minutes inactivity? Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-10-04 02:27 +0200
    Re: Interrupted system call on read after ~20 minutes inactivity? scott@slp53.sl.home (Scott Lurndal) - 2025-10-04 02:13 +0000
    Re: Interrupted system call on read after ~20 minutes inactivity? "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2025-10-05 11:43 -0700
  Re: Interrupted system call on read after ~20 minutes inactivity? Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-10-07 16:29 +0200

csiph-web