fix a diff error
This commit is contained in:
		
							
								
								
									
										2
									
								
								deps/oblib/src/lib/utility/utility.cpp
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								deps/oblib/src/lib/utility/utility.cpp
									
									
									
									
										vendored
									
									
								
							@ -1149,7 +1149,7 @@ static int pidfile_test(const char* pidfile)
 | 
				
			|||||||
  int ret = OB_SUCCESS;
 | 
					  int ret = OB_SUCCESS;
 | 
				
			||||||
  int fd = open(pidfile, O_RDONLY);
 | 
					  int fd = open(pidfile, O_RDONLY);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if (fd < 0) {    
 | 
					  if (fd < 0) {
 | 
				
			||||||
    ret = OB_FILE_NOT_EXIST;
 | 
					    ret = OB_FILE_NOT_EXIST;
 | 
				
			||||||
  } else {
 | 
					  } else {
 | 
				
			||||||
    if (lockf(fd, F_TEST, 0) != 0) {
 | 
					    if (lockf(fd, F_TEST, 0) != 0) {
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user