<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>rx7</author_name>
  <author_url>https://blog.hatena.ne.jp/rx7/</author_url>
  <blog_title>元RX-7乗りの適当な日々</blog_title>
  <blog_url>https://www.na3.jp/</blog_url>
  <categories>
    <anon>IT</anon>
    <anon>Linux</anon>
  </categories>
  <description>さっき、killコマンドのmanを読んでいて気付いた。 pid に -1 を指定した場合、 sig で指定したシグナルが、呼び出し元のプロセスがシグナルを送る許可を持つ全てのプロセスに送られる。但し、プロセス番号 1 (init) へはシグナルは送られない。 Man page of KILL ほほう。つまり、 $ kill -9 -1とかやると、自分が持つプロセス全てにシグナル(SIGKILL)を送信できるとな。 (上記例の&quot;-9&quot;の部分は任意のシグナルでお願いします。&quot;kill -l&quot;とかで確認できる。) 応用して、 # sudo -u username kill -9 -1とかやると、特定…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.na3.jp%2Fentry%2F20120313%2Fp1&quot; title=&quot;特定のユーザが持つプロセス全てにシグナルを送る - 元RX-7乗りの適当な日々&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>https://cdn-ak.d.st-hatena.com/diary/rx7/2012-03-13.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-03-13 00:00:00</published>
  <title>特定のユーザが持つプロセス全てにシグナルを送る</title>
  <type>rich</type>
  <url>https://www.na3.jp/entry/20120313/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
