mirror of
				https://github.com/opa334/TrollStore.git
				synced 2025-11-04 15:42:35 +08:00 
			
		
		
		
	Return ESRCH (No such process) instead of -1
This commit is contained in:
		
							parent
							
								
									e8b69f97cc
								
							
						
					
					
						commit
						5e96d9d7dc
					
				@ -21,7 +21,7 @@ int main(int argc, const char* argv[]) {
 | 
				
			|||||||
	int pid = process.rbs_pid;
 | 
						int pid = process.rbs_pid;
 | 
				
			||||||
	if (!pid)
 | 
						if (!pid)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		return -1;
 | 
							return ESRCH;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	int ret = ptrace(PT_ATTACHEXC, pid, 0, 0);
 | 
						int ret = ptrace(PT_ATTACHEXC, pid, 0, 0);
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user