タグ

2017年1月24日のブックマーク (3件)

  • Linux シグナルの基礎

    TLPI (The Linux Programming Interface) 再々。 TLPI の輪読の際に @matsumotory よりシグナルセットあたりをまとめるようにと指令が出たので、拙遅な感じでまとめました。 シグナルとは プロセス間通信の一種。「プロセスにシグナルを送信すると、そのプロセスの正常処理に割り込んで、シグナル固有の処理(シグナルハンドラ) が実行される」プロセス側では、シグナルを受信した際の動作(シグナルハンドラ) を設定することや、シグナルをブロックすることも可能。 コンソールで、プロセスを終了させるためにkill -9 <PID>とかCtrl+Cとかした際にも、対象プロセスにシグナルが送信されている。 ちなみに、PID「1」の initsystemd にkill -9 1しても何も起らない。(そういえば昔、oom-killer に init を殺された覚

    Linux シグナルの基礎
    Akaza
    Akaza 2017/01/24
  • PHP PSR一覧 2017年版 - Qiita

    PHP Standards Recommendations 2017/01/20現在、18個のPSRが存在します。 内訳は8個がACCEPTED、1個がREVIEW、8個がDRAFT、1個がDEPRECATEDとなっています。 以下の日付は決定した日ではなく、変更がcommitされた日です。 ACCEPTED PSR-1 Basic Coding Standard 2012/03/24に提出、2012/06/05に受理。 最低限準拠すべき基的なコーディング規約を規定している。 BOM無しUTF-8にしろとか勝手にechoやini_setするなとかレベルなので当に超絶基礎的。 PSR-2 Coding Style Guide 2012/05/04に提出、2012/06/05に受理。 いわゆるコーディング規約、およびコーディングスタイル規約。 後継のPSR-12が提出中。 PSR-3 Lo

    PHP PSR一覧 2017年版 - Qiita
    Akaza
    Akaza 2017/01/24
  • Ansible - Mode 755 for directories and 644 for files recursively

    I'd like to allow anyone to list and read all files in my directory tree, but I don't want to make the files executable : dir \subdir1 file1 \subdir2 file2 ... \subdirX fileX The following task makes my directories and files readable, but it makes all the files executable as well: - name: Make my directory tree readable file: path: dir mode: 0755 recurse: yes On the other hand, if I choose mode 06

    Ansible - Mode 755 for directories and 644 for files recursively
    Akaza
    Akaza 2017/01/24
    "u=rwX,g=rX,o=rX"