mirror of
				https://github.com/rad4day/Waybar.git
				synced 2025-11-04 09:42:42 +01:00 
			
		
		
		
	Update command.hpp
This commit is contained in:
		@@ -69,6 +69,8 @@ inline FILE* open(const std::string& cmd, int& pid) {
 | 
			
		||||
  if (cmd == "") return nullptr;
 | 
			
		||||
  int fd[2];
 | 
			
		||||
  if (pipe(fd) != 0){
 | 
			
		||||
    spdlog::error("Unable to pipe fd");
 | 
			
		||||
    return nullptr;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  pid_t child_pid = fork();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user