mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	ifdef __OpenBSD__ around pledge().
This commit is contained in:
		
							
								
								
									
										2
									
								
								server.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								server.c
									
									
									
									
									
								
							@@ -177,9 +177,11 @@ server_start(struct event_base *base, int lockfd, char *lockfile)
 | 
			
		||||
	}
 | 
			
		||||
	close(pair[0]);
 | 
			
		||||
 | 
			
		||||
#ifdef __OpenBSD__
 | 
			
		||||
	if (pledge("stdio rpath wpath cpath fattr unix recvfd proc exec tty "
 | 
			
		||||
	    "ps", NULL) != 0)
 | 
			
		||||
		fatal("pledge failed");
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
	/*
 | 
			
		||||
	 * Must daemonise before loading configuration as the PID changes so
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user