lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [patch #10425] Sockets API: select() and poll() attend to i


From: Joan Lledó
Subject: [lwip-devel] [patch #10425] Sockets API: select() and poll() attend to interruption signals
Date: Wed, 3 Jan 2024 05:53:35 -0500 (EST)

URL:
  <https://savannah.nongnu.org/patch/?10425>

                 Summary: Sockets API: select() and poll() attend to
interruption signals
                   Group: lwIP - A Lightweight TCP/IP stack
               Submitter: jllledo
               Submitted: Wed 03 Jan 2024 11:53:32 AM CET
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Wed 03 Jan 2024 11:53:32 AM CET By: Joan Lledó <jllledo>
The POSIX standard requires select() and poll() to return -1 and set
errno to EINTR when they are signaled to be interrupted while waiting.

Refs:
* https://pubs.opengroup.org/onlinepubs/9699919799/functions/select.html
* https://pubs.opengroup.org/onlinepubs/9699919799/functions/poll.html

In my previous set of patches over the POSIX library, sys_arch_sem_wait can
return SYS_ARCH_INTR when receiving UINT32_MAX as timeout.

This patch updates select() and poll() to listen to interruptions and meet the
POSIX requirements.






    _______________________________________________________
File Attachments:


-------------------------------------------------------
Name: 0007-Sockets-API-select-and-poll-attend-to-signals.patch  Size: 3KiB
<http://savannah.nongnu.org/patch/download.php?file_id=55519>

    AGPL NOTICE

These attachments are served by Savane. You can download the corresponding
source code of Savane at
https://git.savannah.nongnu.org/cgit/administration/savane.git/snapshot/savane-2b478236128ba85c00d8a2ecb8cf6141b8b94a05.tar.gz

    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/patch/?10425>

_______________________________________________
Message sent via Savannah
https://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]