From f3d5157564992f1ef9f390b3ce0c7d3706ba0f19 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sun, 4 Oct 2020 01:06:16 +0000 Subject: doc: fix URLs --- doc/libstddjb/safewrappers.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'doc/libstddjb/safewrappers.html') diff --git a/doc/libstddjb/safewrappers.html b/doc/libstddjb/safewrappers.html index 94edcae..2cacb4a 100644 --- a/doc/libstddjb/safewrappers.html +++ b/doc/libstddjb/safewrappers.html @@ -33,7 +33,7 @@ function.

Quite a lot of system calls are defined by -The +The Open Group Base Specifications as interruptible: when the process is in the middle of such a system call and receives a signal that it does not ignore, the system call immediately returns -1 EINTR (after the signal @@ -47,7 +47,7 @@ simply restarted, not interrupted. EINTR can only happen when a signal handler has been installed, and a signal is actually caught by the signal handler during an interruptible system call. And to avoid EINTR, users can use the SA_RESTART flag when installing the signal handler with -sigaction(). +sigaction().

@@ -57,8 +57,8 @@ when writing an asynchronous event loop.

An asynchronous event loop is organized around a -select() or -poll() +select() or +poll() system call that is the only blocking operation in the whole loop. That call takes a timeout as an argument. If a signal handler is installed with SA_RESTART and a signal arrives in the middle of the select/poll call - which happens often -- cgit v1.2.3