* src/userdel.c, libmisc/user_busy.c, libmisc/Makefile.am,

lib/prototypes.h: Move user_busy() to libmisc/user_busy.c.
	* NEWS, libmisc/user_busy.c: On Linux, do not check if an user is
	logged in with utmp, but check if the user is running some
	processes. If not on Linux, continue to search for an utmp record,
	but make sure the process recorded in the utmp entry is still
	running.
This commit is contained in:
nekral-guest
2009-05-18 18:32:17 +00:00
parent 3e85eafb4c
commit 4a4549c49b
6 changed files with 263 additions and 55 deletions

View File

@@ -363,6 +363,9 @@ extern char *tz (const char *);
/* ulimit.c */
extern int set_filesize_limit (int blocks);
/* user_busy.c */
extern int user_busy (const char *name, uid_t uid);
/* utmp.c */
extern /*@null@*/struct utmp *get_current_utmp (void);
extern struct utmp *prepare_utmp (const char *name,