|  |  | @ -9192,26 +9192,35 @@ static void *socketer(__maybe_unused void *arg) | 
			
		
	
		
		
			
				
					
					|  |  |  | 						send_unix_msg(sockd, reply); |  |  |  | 						send_unix_msg(sockd, reply); | 
			
		
	
		
		
			
				
					
					|  |  |  | 						break; |  |  |  | 						break; | 
			
		
	
		
		
			
				
					
					|  |  |  | 					case CMD_LOGLEVEL: |  |  |  | 					case CMD_LOGLEVEL: | 
			
		
	
		
		
			
				
					
					|  |  |  | 						oldloglevel = pi->ckp->loglevel; |  |  |  | 						if (!*id) { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 						loglevel = atoi(id); |  |  |  | 							LOGDEBUG("Listener received loglevel, currently %d", | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 						LOGDEBUG("Listener received loglevel %d currently %d A", |  |  |  | 								 oldloglevel); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 							 loglevel, oldloglevel); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 						if (loglevel < LOG_EMERG || loglevel > LOG_DEBUG) { |  |  |  |  | 
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 							snprintf(reply, sizeof(reply), |  |  |  | 							snprintf(reply, sizeof(reply), | 
			
		
	
		
		
			
				
					
					|  |  |  | 								 "%s.%ld.ERR.invalid loglevel %d" |  |  |  | 								 "%s.%ld.ok.loglevel currently %d", | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 								 " - currently %d", |  |  |  |  | 
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 								 id, now.tv_sec, |  |  |  | 								 id, now.tv_sec, | 
			
		
	
		
		
			
				
					
					|  |  |  | 								 loglevel, oldloglevel); |  |  |  | 								 pi->ckp->loglevel); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 						} else { |  |  |  | 						} else { | 
			
		
	
		
		
			
				
					
					|  |  |  | 							pi->ckp->loglevel = loglevel; |  |  |  | 							oldloglevel = pi->ckp->loglevel; | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 							snprintf(reply, sizeof(reply), |  |  |  | 							loglevel = atoi(id); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 								 "%s.%ld.ok.loglevel now %d - was %d", |  |  |  | 							LOGDEBUG("Listener received loglevel %d currently %d A", | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 								 id, now.tv_sec, |  |  |  | 								 loglevel, oldloglevel); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 								 pi->ckp->loglevel, oldloglevel); |  |  |  | 							if (loglevel < LOG_EMERG || loglevel > LOG_DEBUG) { | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 								snprintf(reply, sizeof(reply), | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 									 "%s.%ld.ERR.invalid loglevel %d" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 									 " - currently %d", | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 									 id, now.tv_sec, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 									 loglevel, oldloglevel); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 							} else { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 								pi->ckp->loglevel = loglevel; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 								snprintf(reply, sizeof(reply), | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 									 "%s.%ld.ok.loglevel now %d - was %d", | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 									 id, now.tv_sec, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 									 pi->ckp->loglevel, oldloglevel); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 							} | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 							// Do this twice since the loglevel may have changed
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 							LOGDEBUG("Listener received loglevel %d currently %d B", | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 								 loglevel, oldloglevel); | 
			
		
	
		
		
			
				
					
					|  |  |  | 						} |  |  |  | 						} | 
			
		
	
		
		
			
				
					
					|  |  |  | 						// Do this twice since the loglevel may have changed
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 						LOGDEBUG("Listener received loglevel %d currently %d B", |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 							 loglevel, oldloglevel); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 						send_unix_msg(sockd, reply); |  |  |  | 						send_unix_msg(sockd, reply); | 
			
		
	
		
		
			
				
					
					|  |  |  | 						break; |  |  |  | 						break; | 
			
		
	
		
		
			
				
					
					|  |  |  | 					// Always process immediately:
 |  |  |  | 					// Always process immediately:
 | 
			
		
	
	
		
		
			
				
					|  |  | 
 |