mirror of
				https://github.com/tmux/tmux.git
				synced 2025-10-26 12:27:15 +00:00 
			
		
		
		
	Fire check callback after cleaning up event so it does not get stuck, from
Jeongho Jang in GitHub issue 2695.
This commit is contained in:
		
							
								
								
									
										6
									
								
								file.c
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								file.c
									
									
									
									
									
								
							| @@ -503,14 +503,14 @@ file_write_error_callback(__unused struct bufferevent *bev, __unused short what, | ||||
|  | ||||
| 	log_debug("write error file %d", cf->stream); | ||||
|  | ||||
| 	if (cf->cb != NULL) | ||||
| 		cf->cb(NULL, NULL, 0, -1, NULL, cf->data); | ||||
|  | ||||
| 	bufferevent_free(cf->event); | ||||
| 	cf->event = NULL; | ||||
|  | ||||
| 	close(cf->fd); | ||||
| 	cf->fd = -1; | ||||
|  | ||||
| 	if (cf->cb != NULL) | ||||
| 		cf->cb(NULL, NULL, 0, -1, NULL, cf->data); | ||||
| } | ||||
|  | ||||
| /* Client file write callback. */ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Nicholas Marriott
					Nicholas Marriott