diff options
author | Ed Schouten <ed@FreeBSD.org> | 2009-12-03 17:05:36 +0000 |
---|---|---|
committer | Ed Schouten <ed@FreeBSD.org> | 2009-12-03 17:05:36 +0000 |
commit | 178442d07a7380dec6815a07fc22c82a29b6758d (patch) | |
tree | aacd1519b4e057808c4b1be81b7237ba37310918 /lib/libulog | |
parent | 42b525af6ef7bc68c5d8069bc842db82a8305402 (diff) | |
download | src-178442d07a7380dec6815a07fc22c82a29b6758d.tar.gz src-178442d07a7380dec6815a07fc22c82a29b6758d.zip |
Use USER_PROCESS instead of LOGIN_PROCESS.
POSIX isn't clear about how the fields should be used, but according to
utmpx(5) on Linux, LOGIN_PROCESS refers to a TTY that's still running a
getty.
Notes
Notes:
svn path=/head/; revision=200067
Diffstat (limited to 'lib/libulog')
-rw-r--r-- | lib/libulog/ulog.h | 4 | ||||
-rw-r--r-- | lib/libulog/ulog_getutxent.3 | 6 | ||||
-rw-r--r-- | lib/libulog/ulog_getutxent.c | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/lib/libulog/ulog.h b/lib/libulog/ulog.h index fc95c3b99ae9..2551f918d1f5 100644 --- a/lib/libulog/ulog.h +++ b/lib/libulog/ulog.h @@ -71,11 +71,11 @@ struct ulog_utmpx { #endif #define OLD_TIME 2 #define NEW_TIME 3 -#if 0 #define USER_PROCESS 4 +#if 0 #define INIT_PROCESS 5 -#endif #define LOGIN_PROCESS 6 +#endif #define DEAD_PROCESS 7 #define SHUTDOWN_TIME 8 diff --git a/lib/libulog/ulog_getutxent.3 b/lib/libulog/ulog_getutxent.3 index 6b4bf010d980..5960a90f0417 100644 --- a/lib/libulog/ulog_getutxent.3 +++ b/lib/libulog/ulog_getutxent.3 @@ -73,15 +73,15 @@ The .Fa ut_type field contains the type of the message, which may have one of the following values: -.Bl -tag -width LOGIN_PROCESS +.Bl -tag -width SHUTDOWN_TIME .It Dv EMPTY No valid user accounting information. .It Dv OLD_TIME Identifies time when system clock changed. .It Dv NEW_TIME Identifies time after system clock changed. -.It Dv LOGIN_PROCESS -Identifies the session leader of a logged in user. +.It Dv USER_PROCESS +Identifies a process. .It Dv DEAD_PROCESS Identifies a session leader who has exited. .It Dv SHUTDOWN_TIME diff --git a/lib/libulog/ulog_getutxent.c b/lib/libulog/ulog_getutxent.c index 082f60e50350..1dd464d56767 100644 --- a/lib/libulog/ulog_getutxent.c +++ b/lib/libulog/ulog_getutxent.c @@ -82,7 +82,7 @@ ulog_getutxent(void) else if (MATCH(user, "") && MATCH(host, "")) utx.ut_type = DEAD_PROCESS; else if (!MATCH(user, "")) - utx.ut_type = LOGIN_PROCESS; + utx.ut_type = USER_PROCESS; else utx.ut_type = EMPTY; |