summaryrefslogtreecommitdiff
path: root/usr.bin/procstat/procstat_sigs.c
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2017-10-14 18:38:36 +0000
committerBrooks Davis <brooks@FreeBSD.org>2017-10-14 18:38:36 +0000
commit2a243b9539a45b392a515569cab2091844cf2bdf (patch)
treefa6c815477eaedfb7bc8c1882a778285119b5223 /usr.bin/procstat/procstat_sigs.c
parent8c8e10b763684442d614bc0eb978fd90789cd2a6 (diff)
downloadsrc-test2-2a243b9539a45b392a515569cab2091844cf2bdf.tar.gz
src-test2-2a243b9539a45b392a515569cab2091844cf2bdf.zip
Notes
Diffstat (limited to 'usr.bin/procstat/procstat_sigs.c')
-rw-r--r--usr.bin/procstat/procstat_sigs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/procstat/procstat_sigs.c b/usr.bin/procstat/procstat_sigs.c
index 7bc73ec43471..59759b2b7899 100644
--- a/usr.bin/procstat/procstat_sigs.c
+++ b/usr.bin/procstat/procstat_sigs.c
@@ -48,7 +48,7 @@ procstat_print_signame(int sig)
char name[12];
int i;
- if (!nflag && sig < sys_nsig) {
+ if ((procstat_opts & PS_OPT_SIGNUM) == 0 && sig < sys_nsig) {
strlcpy(name, sys_signame[sig], sizeof(name));
for (i = 0; name[i] != 0; i++)
name[i] = toupper(name[i]);
@@ -67,7 +67,7 @@ procstat_close_signame(int sig)
char name[12];
int i;
- if (!nflag && sig < sys_nsig) {
+ if ((procstat_opts & PS_OPT_SIGNUM) == 0 && sig < sys_nsig) {
strlcpy(name, sys_signame[sig], sizeof(name));
for (i = 0; name[i] != 0; i++)
name[i] = toupper(name[i]);
@@ -110,7 +110,7 @@ procstat_sigs(struct procstat *prstat __unused, struct kinfo_proc *kipp)
{
int j;
- if (!hflag)
+ if ((procstat_opts & PS_OPT_NOHEADER) == 0)
xo_emit("{T:/%5s %-16s %-7s %4s}\n", "PID", "COMM", "SIG",
"FLAGS");
@@ -139,7 +139,7 @@ procstat_threads_sigs(struct procstat *procstat, struct kinfo_proc *kipp)
unsigned int count, i;
char *threadid;
- if (!hflag)
+ if ((procstat_opts & PS_OPT_NOHEADER) == 0)
xo_emit("{T:/%5s %6s %-16s %-7s %4s}\n", "PID", "TID", "COMM",
"SIG", "FLAGS");