mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	* fix daemonizing
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@322 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
		
							parent
							
								
									fa48de8a12
								
							
						
					
					
						commit
						a370e6e763
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
					@ -34,6 +34,7 @@
 | 
				
			||||||
#include <ltdl.h>
 | 
					#include <ltdl.h>
 | 
				
			||||||
#include <memblock.h>
 | 
					#include <memblock.h>
 | 
				
			||||||
#include <limits.h>
 | 
					#include <limits.h>
 | 
				
			||||||
 | 
					#include <fcntl.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifdef HAVE_LIBWRAP
 | 
					#ifdef HAVE_LIBWRAP
 | 
				
			||||||
#include <syslog.h>
 | 
					#include <syslog.h>
 | 
				
			||||||
| 
						 | 
					@ -286,6 +287,11 @@ int main(int argc, char *argv[]) {
 | 
				
			||||||
        
 | 
					        
 | 
				
			||||||
        close(0);
 | 
					        close(0);
 | 
				
			||||||
        close(1);
 | 
					        close(1);
 | 
				
			||||||
 | 
					        close(2);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        open("/dev/null", O_RDONLY);
 | 
				
			||||||
 | 
					        open("/dev/null", O_WRONLY);
 | 
				
			||||||
 | 
					        open("/dev/null", O_WRONLY);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    chdir("/");
 | 
					    chdir("/");
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue