sockstat(1): print PID adjusted to the right
This allows for easy copy-and-paste of a unix(4) peer name for lookup. With current implementation it is guaranteed that a peer listed could be found in the output. Differential revision: https://reviews.freebsd.org/D35727
This commit is contained in:
parent
2c436d4890
commit
d961ccd350
@ -1340,7 +1340,7 @@ display(void)
|
||||
pos += xprintf("%.10s", getprocname(xf->xf_pid));
|
||||
while (pos < 20)
|
||||
pos += xprintf(" ");
|
||||
pos += xprintf("%lu ", (u_long)xf->xf_pid);
|
||||
pos += xprintf("%5lu ", (u_long)xf->xf_pid);
|
||||
while (pos < 26)
|
||||
pos += xprintf(" ");
|
||||
pos += xprintf("%-3d ", xf->xf_fd);
|
||||
|
Loading…
Reference in New Issue
Block a user