summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2019-05-14 10:34:25 +0200
committerSimon Rettberg2019-05-14 10:34:25 +0200
commitde14653078a6cc5a57a643b1361ba8b97fe674fc (patch)
treebd97dda84188c3dd5fa0f72ce1689c93007bdb18
parentRetry loginctl show-session (diff)
downloadidle-daemon-de14653078a6cc5a57a643b1361ba8b97fe674fc.tar.gz
idle-daemon-de14653078a6cc5a57a643b1361ba8b97fe674fc.tar.xz
idle-daemon-de14653078a6cc5a57a643b1361ba8b97fe674fc.zip
Less debug spam
-rw-r--r--src/main.c4
-rw-r--r--src/util.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 2dd433e..4291b54 100644
--- a/src/main.c
+++ b/src/main.c
@@ -120,7 +120,7 @@ int main( int argc, char **argv )
if ( screen.lockTimestamp == 0 && ( NOW - usr->lockTime ) > 4 ) {
// Session is not locked, unconditionally update timestamp
if ( usr->lockTime != 0 ) {
- printf( "%s #### Session got unlocked.\n", usr->display );
+ //printf( "%s #### Session got unlocked.\n", usr->display );
}
usr->lockTime = 0;
usr->lockTimeOffset = 0;
@@ -128,7 +128,7 @@ int main( int argc, char **argv )
usr->lastActivityOffset = 0;
} else if ( screen.lockTimestamp - usr->lockTime > 10 ) { // Allow for slight offset in case we manually set this
// Session is locked
- printf( "%s #### Session got externally locked.\n", usr->display );
+ //printf( "%s #### Session got externally locked.\n", usr->display );
usr->lockTime = screen.lockTimestamp;
usr->lockTimeOffset = 0;
if ( usr->lastActivity == 0 || usr->lockTime != 0 ) {
diff --git a/src/util.c b/src/util.c
index e9d642c..7e517e6 100644
--- a/src/util.c
+++ b/src/util.c
@@ -174,11 +174,13 @@ void run( bool detach, const char *file, ... )
argv[i] = strdup( argv[i] );
}
va_end( ap );
+ /*
printf( "Running: '%s'", file );
for ( int i = 0; i < 100 && argv[i] != NULL; ++i ) {
printf( " '%s'", argv[i] );
}
printf( "\n" );
+ */
execvp( strdup( file ), argv );
// Something went wrong...
perror( "run execvp failed" );