mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Can't call event_del() without event_set() first - so call event_set()
when setting up the client.
This commit is contained in:
		
							
								
								
									
										1
									
								
								client.c
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								client.c
									
									
									
									
									
								
							@@ -93,6 +93,7 @@ server_started:
 | 
				
			|||||||
	if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1)
 | 
						if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1)
 | 
				
			||||||
		fatal("fcntl failed");
 | 
							fatal("fcntl failed");
 | 
				
			||||||
	imsg_init(&client_ibuf, fd);
 | 
						imsg_init(&client_ibuf, fd);
 | 
				
			||||||
 | 
						event_set(&client_event, fd, EV_READ, client_callback, NULL);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (cmdflags & CMD_SENDENVIRON)
 | 
						if (cmdflags & CMD_SENDENVIRON)
 | 
				
			||||||
		client_send_environ();
 | 
							client_send_environ();
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user