<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Signalfd on Nalar</title>
    <link>https://nalar.dev/tags/signalfd/</link>
    <description>Recent content in Signalfd on Nalar</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Wed, 23 Sep 2026 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://nalar.dev/tags/signalfd/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>signalfd Consumes Blocked Signals Through File Descriptor Reads</title>
      <link>https://nalar.dev/signalfd-consumes-blocked-signals-through-file-descriptor-reads/</link>
      <pubDate>Wed, 23 Sep 2026 00:00:00 +0000</pubDate>
      <guid>https://nalar.dev/signalfd-consumes-blocked-signals-through-file-descriptor-reads/</guid>
      <description>&lt;h1 id=&#34;signalfd-consumes-blocked-signals-through-file-descriptor-reads&#34;&gt;signalfd Consumes Blocked Signals Through File Descriptor Reads&lt;/h1&gt;&#xA;&lt;p&gt;&lt;code&gt;signalfd()&lt;/code&gt; turns selected signal notifications into records that can be consumed with &lt;code&gt;read()&lt;/code&gt;. A matching pending signal makes the descriptor readable, which allows signal handling to share the same &lt;code&gt;poll()&lt;/code&gt;, &lt;code&gt;select()&lt;/code&gt;, or &lt;code&gt;epoll&lt;/code&gt; path as sockets, timers, and other descriptors.&lt;/p&gt;&#xA;&lt;p&gt;The descriptor does not redirect signals merely because its mask names them. Normal signal-mask rules still apply. In the usual design, the selected signals are blocked before they can be delivered through their ordinary dispositions, then a &lt;code&gt;signalfd&lt;/code&gt; reads the pending instances.&lt;/p&gt;</description>
    </item>
    <item>
      <title>signalfd Turns Blocked Signals into Readable Events</title>
      <link>https://nalar.dev/signalfd-turns-blocked-signals-into-readable-events/</link>
      <pubDate>Tue, 22 Sep 2026 00:00:00 +0000</pubDate>
      <guid>https://nalar.dev/signalfd-turns-blocked-signals-into-readable-events/</guid>
      <description>&lt;p&gt;Linux signals normally interrupt a thread through asynchronous delivery. &lt;code&gt;signalfd()&lt;/code&gt; offers a different boundary for selected signals: keep them blocked in the relevant threads, then consume pending instances by reading a file descriptor.&lt;/p&gt;&#xA;&lt;p&gt;The signal mechanism itself does not become a byte stream. The kernel still maintains signal state and normal process- or thread-directed delivery rules. &lt;code&gt;signalfd&lt;/code&gt; adds a file-descriptor interface for accepting signals from a configured set.&lt;/p&gt;&#xA;&lt;h2 id=&#34;blocking-and-the-descriptor-mask-are-separate-state&#34;&gt;Blocking and the descriptor mask are separate state&lt;/h2&gt;&#xA;&lt;p&gt;A &lt;code&gt;signalfd&lt;/code&gt; has a signal-set mask that selects which signals it can accept. That mask does not block those signals for a thread. Normal use therefore pairs descriptor creation with a signal mask operation.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
