Added semaphore fail message when a semaphore cannot be opened.
This commit is contained in:
		
							parent
							
								
									43078c5c68
								
							
						
					
					
						commit
						a077f55a43
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
					@ -97,6 +97,9 @@ namespace IPC {
 | 
				
			||||||
      mySem = sem_open(name, oflag);
 | 
					      mySem = sem_open(name, oflag);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					    if (!(*this)){
 | 
				
			||||||
 | 
					      FAIL_MSG("Failed to open semaphore %s: %s", name, strerror(errno));
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
    myName = (char *)name;
 | 
					    myName = (char *)name;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue