Skip to content
Decode and print process signal masks, given a process id on Linux.
Branch: master
Clone or download
r4um Merge pull request #1 from orivej/master
Pull orivejs fixes
Latest commit b978e40 Oct 9, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore init Jun 18, 2014
LICENSE Initial commit Jun 25, 2014
README.md
sigmask.go Name glibc-internal real-time signals Jun 22, 2016

README.md

sigmask

Decode and print process signal masks, given a process id on Linux. Decodes signal masks (SigCgt, SigIgn, SigBlk, ShdPnd, SigPnd) in /proc/PID/status

To build

$ go build sigmask.go

Usage

Usage: ./sigmask [flags] pid
Usage: ./sigmask [flags] proc_status_path
Usage: ./sigmask [-noname] -mask=MASK
  -blocked=false: Show blocked
  -caught=false: Show caught
  -ignored=false: Show ignored
  -mask="": Decode mask
  -noname=false: Do not print signal name
  -pending=false: Show pending
  -shpending=false: Show shared pending

Example

$ ./sigmask $$
SigPnd
ShdPnd
SigBlk SIGCHLD
SigIgn SIGQUIT,SIGTSTP,SIGTTIN,SIGTTOU
SigCgt SIGHUP,SIGINT,SIGILL,SIGTRAP,SIGABRT,SIGBUS,SIGFPE,SIGUSR1,SIGSEGV,SIGUSR2,SIGPIPE,SIGALRM,SIGTERM,SIGCHLD,SIGXCPU,SIGXFSZ,SIGVTALRM,SIGWINCH,SIGSYS
You can’t perform that action at this time.