fix Pid.PidFile
This commit is contained in:
		
							parent
							
								
									eec869f6d7
								
							
						
					
					
						commit
						c7089edade
					
				@ -686,8 +686,8 @@ static int ptql_pid_get(sigar_t *sigar,
 | 
			
		||||
        if (status != SIGAR_OK) {
 | 
			
		||||
            return status;
 | 
			
		||||
        }
 | 
			
		||||
        *pid = strtoull(buffer, &ptr, 10);
 | 
			
		||||
        if (strtonum_failed(buffer, ptr)) {
 | 
			
		||||
        *pid = str2pid(buffer, ptr);
 | 
			
		||||
        if ((buffer == ptr) || (errno == ERANGE)) {
 | 
			
		||||
            return errno;
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user