artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2facf52
)
Return idle time of 0, not -1 for users w/o a tty.
author
millert
<millert@openbsd.org>
Thu, 13 Feb 1997 06:22:42 +0000
(06:22 +0000)
committer
millert
<millert@openbsd.org>
Thu, 13 Feb 1997 06:22:42 +0000
(06:22 +0000)
libexec/rpc.rusersd/rusers_proc.c
patch
|
blob
|
history
diff --git
a/libexec/rpc.rusersd/rusers_proc.c
b/libexec/rpc.rusersd/rusers_proc.c
index
eb504f2
..
78d8a67
100644
(file)
--- a/
libexec/rpc.rusersd/rusers_proc.c
+++ b/
libexec/rpc.rusersd/rusers_proc.c
@@
-27,7
+27,7
@@
*/
#ifndef lint
-static char rcsid[] = "$Id: rusers_proc.c,v 1.
3 1996/09/22 08:41:32 tholo
Exp $";
+static char rcsid[] = "$Id: rusers_proc.c,v 1.
4 1997/02/13 06:22:42 millert
Exp $";
#endif /* not lint */
#include <signal.h>
@@
-171,7
+171,7
@@
getidle(tty, display)
#ifdef DEBUG
printf("%s: %m\n", devname);
#endif
- return (
-1
);
+ return (
0
);
}
time(&now);
#ifdef DEBUG