mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	Restore SIGPIPE warning when the platform doesn't have MSG_NOSIGNAL.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1097 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
		
							parent
							
								
									ba31adcf3e
								
							
						
					
					
						commit
						4b352e5fac
					
				
					 2 changed files with 11 additions and 0 deletions
				
			
		| 
						 | 
					@ -132,6 +132,12 @@ pa_context *pa_context_new(pa_mainloop_api *mainloop, const char *name) {
 | 
				
			||||||
    memset(&c->spawn_api, 0, sizeof(c->spawn_api));
 | 
					    memset(&c->spawn_api, 0, sizeof(c->spawn_api));
 | 
				
			||||||
    c->do_autospawn = 0;
 | 
					    c->do_autospawn = 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifndef MSG_NOSIGNAL
 | 
				
			||||||
 | 
					#ifdef SIGPIPE    
 | 
				
			||||||
 | 
					    pa_check_signal_is_blocked(SIGPIPE);
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    c->conf = pa_client_conf_new();
 | 
					    c->conf = pa_client_conf_new();
 | 
				
			||||||
    pa_client_conf_load(c->conf, NULL);
 | 
					    pa_client_conf_load(c->conf, NULL);
 | 
				
			||||||
#ifdef HAVE_X11
 | 
					#ifdef HAVE_X11
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -78,6 +78,11 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "core-util.h"
 | 
					#include "core-util.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/* Not all platforms have this */
 | 
				
			||||||
 | 
					#ifndef MSG_NOSIGNAL
 | 
				
			||||||
 | 
					#define MSG_NOSIGNAL 0
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifndef OS_IS_WIN32
 | 
					#ifndef OS_IS_WIN32
 | 
				
			||||||
#define PA_RUNTIME_PATH_PREFIX "/tmp/pulse-"
 | 
					#define PA_RUNTIME_PATH_PREFIX "/tmp/pulse-"
 | 
				
			||||||
#define PATH_SEP '/'
 | 
					#define PATH_SEP '/'
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue