[haiku-bugs] Re: [Haiku] #12182: Interrupted system call messages / read errors during peak network traffic

  • From: "pulkomandy" <trac@xxxxxxxxxxxx>
  • Date: Mon, 29 Jun 2015 07:10:18 -0000

#12182: Interrupted system call messages / read errors during peak network
traffic
--------------------------------+----------------------------
Reporter: kallisti5 | Owner: axeld
Type: bug | Status: new
Priority: normal | Milestone: R1/beta1
Component: Kits/Network Kit | Version: R1/Development
Resolution: | Keywords:
Blocked By: | Blocking:
Has a Patch: 0 | Platform: All
--------------------------------+----------------------------

Comment (by pulkomandy):

"Interrupted system call" is not a bug, but a feature. When a thread gets
a signal, whatever syscall it is waiting on returns immediately with error
EINTR and must be restarted. This makes it possible to ctrl+C a thread
while it is blocked on a read(), for example.

It's possible to configure the OS to automatically restart the syscall in
that case (SA_RESTART), so the apps don't have to bother with managing
EINTR.

It looks like wget is not properly configured on Haiku to set this as it
wants. Maybe there is some legacy BeOS code still enabled in the wget
port? I don't think there are any problems on Haiku side, however.

--
Ticket URL: <https://dev.haiku-os.org/ticket/12182#comment:3>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: