mirror of
				https://github.com/ShaYmez/MMDVM_CM.git
				synced 2025-11-03 20:50:21 -05:00 
			
		
		
		
	Fix stderr messages at startup in DMR2YSF
This commit is contained in:
		
							parent
							
								
									725c5724bf
								
							
						
					
					
						commit
						fb26e4e344
					
				@ -160,7 +160,6 @@ int CDMR2YSF::run()
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
		::close(STDIN_FILENO);
 | 
							::close(STDIN_FILENO);
 | 
				
			||||||
		::close(STDOUT_FILENO);
 | 
							::close(STDOUT_FILENO);
 | 
				
			||||||
		::close(STDERR_FILENO);
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
		// If we are currently root...
 | 
							// If we are currently root...
 | 
				
			||||||
		if (getuid() == 0) {
 | 
							if (getuid() == 0) {
 | 
				
			||||||
@ -199,6 +198,9 @@ int CDMR2YSF::run()
 | 
				
			|||||||
		return 1;
 | 
							return 1;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if (m_daemon)
 | 
				
			||||||
 | 
							::close(STDERR_FILENO);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	m_callsign = m_conf.getCallsign();
 | 
						m_callsign = m_conf.getCallsign();
 | 
				
			||||||
	m_defsrcid = m_conf.getDMRId();
 | 
						m_defsrcid = m_conf.getDMRId();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -548,7 +550,7 @@ int CDMR2YSF::run()
 | 
				
			|||||||
			
 | 
								
 | 
				
			||||||
			m_dmrLastDT = DataType;
 | 
								m_dmrLastDT = DataType;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		
 | 
					
 | 
				
			||||||
		if (ysfWatch.elapsed() > YSF_FRAME_PER) {
 | 
							if (ysfWatch.elapsed() > YSF_FRAME_PER) {
 | 
				
			||||||
			unsigned int ysfFrameType = m_conv.getYSF(m_ysfFrame + 35U);
 | 
								unsigned int ysfFrameType = m_conv.getYSF(m_ysfFrame + 35U);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user