<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>buty4649</author_name>
  <author_url>https://blog.hatena.ne.jp/buty4649/</author_url>
  <blog_title>ぶていのログでぶログ</blog_title>
  <blog_url>https://tech.buty4649.net/</blog_url>
  <categories>
    <anon>Linux</anon>
    <anon>Ruby</anon>
  </categories>
  <description>psコマンドの -o sigmask や、/proc/$pid/statusのSig〜は16進数の文字列で表示されていて、該当するbit数のシグナルにフラグが立っているというような見方になっている。 例えば、ps -o sigmaskで1の位が3ならHUP(1)とINT(2)がマスクされていることになる。 んで、本題。 bashやfishがどういうシグナルマスクを設定しているか気になってたのでps -o sigmaskしてみていたのだが表示される値が 0000000081281004 や 0000000080384004 で一瞬でどのシグナルか判断できなかった。 なので、Rubyでスクリプトを…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.buty4649.net%2Fentry%2F2021%2F10%2F25%2F003255&quot; title=&quot;シグナルマスクのビット列をシグナル名に変換する - ぶていのログでぶログ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-10-25 00:32:55</published>
  <title>シグナルマスクのビット列をシグナル名に変換する</title>
  <type>rich</type>
  <url>https://tech.buty4649.net/entry/2021/10/25/003255</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
