[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdebase/workspace/kdm/backend
From:       Luboš Luňák <l.lunak () kde ! org>
Date:       2010-05-14 14:57:10
Message-ID: 20100514145710.2726AAC8B5 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1126655 by lunakl:

Check whether utmp USER_PROCESS entries are still valid
the same way coreutils/procps do in who/w (bnc#600812).



 M  +2 -0      util.c  


--- trunk/KDE/kdebase/workspace/kdm/backend/util.c #1126654:1126655
@@ -665,6 +665,8 @@
 		   )
 		{
 #endif
+			if (ut->ut_pid <= 0 || (kill (ut->ut_pid, 0) < 0 && errno == ESRCH))
+				continue; /* ignore stale utmp entries */
 			if (*ut->ut_host) { /* from remote or x */
 				if (!(flags & lstRemote))
 					continue;

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic