mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 10:47:18 +00:00 
			
		
		
		
	Merge "main/utils: Don't emit an ERROR message if the read end of a pipe closes"
This commit is contained in:
		| @@ -1399,7 +1399,13 @@ int ast_carefulwrite(int fd, char *s, int len, int timeoutms) | ||||
|  | ||||
| 		if (res < 0 && errno != EAGAIN && errno != EINTR) { | ||||
| 			/* fatal error from write() */ | ||||
| 			ast_log(LOG_ERROR, "write() returned error: %s\n", strerror(errno)); | ||||
| 			if (errno == EPIPE) { | ||||
| #ifndef STANDALONE | ||||
| 				ast_debug(1, "write() failed due to reading end being closed: %s\n", strerror(errno)); | ||||
| #endif | ||||
| 			} else { | ||||
| 				ast_log(LOG_ERROR, "write() returned error: %s\n", strerror(errno)); | ||||
| 			} | ||||
| 			return -1; | ||||
| 		} | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user