| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -718,17 +718,12 @@ out: | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					/* Send a single message to a process instance when there will be no response,
 | 
					 | 
					 | 
					 | 
					/* Send a single message to a process instance when there will be no response,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 * closing the socket immediately. */ | 
					 | 
					 | 
					 | 
					 * closing the socket immediately. */ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					void _send_proc(proc_instance_t *pi, const char *msg, const char *file, const char *func, const int line) | 
					 | 
					 | 
					 | 
					void _send_proc_data(proc_instance_t *pi, const char *msg, const char *file, const char *func, const int line) | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					{ | 
					 | 
					 | 
					 | 
					{ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						char *path = pi->us.path; | 
					 | 
					 | 
					 | 
						char *path = pi->us.path; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						bool ret = false; | 
					 | 
					 | 
					 | 
						bool ret = false; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						int sockd; | 
					 | 
					 | 
					 | 
						int sockd; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						if (unlikely(!msg || !strlen(msg))) { | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
							LOGERR("Attempted to send null message to %s in send_proc", pi->processname); | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
							return; | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						} | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						if (unlikely(!path || !strlen(path))) { | 
					 | 
					 | 
					 | 
						if (unlikely(!path || !strlen(path))) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
							LOGERR("Attempted to send message %s to null path in send_proc", msg ? msg : ""); | 
					 | 
					 | 
					 | 
							LOGERR("Attempted to send message %s to null path in send_proc", msg ? msg : ""); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
							goto out; | 
					 | 
					 | 
					 | 
							goto out; | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -763,6 +758,16 @@ out: | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
							LOGERR("Failure in send_proc from %s %s:%d", file, func, line); | 
					 | 
					 | 
					 | 
							LOGERR("Failure in send_proc from %s %s:%d", file, func, line); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					} | 
					 | 
					 | 
					 | 
					} | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					/* As per send_proc_data but must be a string */ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					void _send_proc(proc_instance_t *pi, const char *msg, const char *file, const char *func, const int line) | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					{ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
						if (unlikely(!msg || !strlen(msg))) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
							LOGERR("Attempted to send null message to %s in send_proc", pi->processname); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
							return; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
						} | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
						return _send_proc_data(pi, msg, file, func, line); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					} | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					/* Send a single message to a process instance and retrieve the response, then
 | 
					 | 
					 | 
					 | 
					/* Send a single message to a process instance and retrieve the response, then
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 * close the socket. */ | 
					 | 
					 | 
					 | 
					 * close the socket. */ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					char *_send_recv_proc(proc_instance_t *pi, const char *msg, int writetimeout, int readtimedout, | 
					 | 
					 | 
					 | 
					char *_send_recv_proc(proc_instance_t *pi, const char *msg, int writetimeout, int readtimedout, | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
  |