forked from quickshell/quickshell
		
	launch: don't try to write daemon exit from monitor process
This commit is contained in:
		
							parent
							
								
									e3d003e7ab
								
							
						
					
					
						commit
						87a57b7a2c
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -65,14 +65,13 @@ int runCommand(int argc, char** argv, QCoreApplication* coreApplication) {
 | 
			
		|||
			                   << ": " << qt_error_string();
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		DAEMON_PIPE = closepipes[1];
 | 
			
		||||
 | 
			
		||||
		pid_t pid = fork(); // NOLINT (include)
 | 
			
		||||
 | 
			
		||||
		if (pid == -1) {
 | 
			
		||||
			qFatal().nospace() << "Failed to fork daemon with error " << errno << ": "
 | 
			
		||||
			                   << qt_error_string();
 | 
			
		||||
		} else if (pid == 0) {
 | 
			
		||||
			DAEMON_PIPE = closepipes[1];
 | 
			
		||||
			close(closepipes[0]);
 | 
			
		||||
 | 
			
		||||
			if (setsid() == -1) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue