diff options
author | Ed Schouten <ed@FreeBSD.org> | 2010-01-18 10:50:25 +0000 |
---|---|---|
committer | Ed Schouten <ed@FreeBSD.org> | 2010-01-18 10:50:25 +0000 |
commit | 8b72ee05e7598b516fdbe5a7d2bed1bf6842cad9 (patch) | |
tree | dd550a4e3781a737d2cd6e4d1856305bc2341a06 | |
parent | b6d1bf0ff3248acd8cd98b102359b2733552d12e (diff) | |
download | getent-darwin-8b72ee05e7598b516fdbe5a7d2bed1bf6842cad9.tar.gz getent-darwin-8b72ee05e7598b516fdbe5a7d2bed1bf6842cad9.tar.zst getent-darwin-8b72ee05e7598b516fdbe5a7d2bed1bf6842cad9.zip |
Also let getent(1) print values of ut_pid.
-rw-r--r-- | getent.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -601,13 +601,13 @@ utmpxprint(const struct utmpx *ut) case USER_PROCESS: printf("user process: id=\""); UTMPXPRINTID; - printf("\" user=\"%s\" line=\"%s\" host=\"%s\"\n", - ut->ut_user, ut->ut_line, ut->ut_host); + printf("\" pid=\"%d\" user=\"%s\" line=\"%s\" host=\"%s\"\n", + ut->ut_pid, ut->ut_user, ut->ut_line, ut->ut_host); break; case DEAD_PROCESS: printf("dead process: id=\""); UTMPXPRINTID; - printf("\"\n"); + printf("\" pid=\"%d\"\n", ut->ut_pid); break; default: printf("unknown record type\n"); |