mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Merge branch 'obsd-master'
Conflicts: cmd-find.c
This commit is contained in:
		
							
								
								
									
										4
									
								
								server.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								server.c
									
									
									
									
									
								
							@@ -177,6 +177,10 @@ server_start(struct event_base *base, int lockfd, char *lockfile)
 | 
			
		||||
	}
 | 
			
		||||
	close(pair[0]);
 | 
			
		||||
 | 
			
		||||
	if (pledge("stdio rpath wpath cpath fattr unix recvfd proc exec tty "
 | 
			
		||||
	    "ps", NULL) != 0)
 | 
			
		||||
		fatal("pledge failed");
 | 
			
		||||
 | 
			
		||||
	/*
 | 
			
		||||
	 * Must daemonise before loading configuration as the PID changes so
 | 
			
		||||
	 * $TMUX would be wrong for sessions created in the config file.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user