mirror of
				https://github.com/ARM-software/devlib.git
				synced 2025-11-04 07:51:21 +00:00 
			
		
		
		
	connection/send_signal: Use signal value instead of name
Some targets do not support killing via signal name so use the signal number for greater compatibility.
This commit is contained in:
		@@ -27,7 +27,7 @@ _KILL_TIMEOUT = 3
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def _kill_pgid_cmd(pgid, sig):
 | 
					def _kill_pgid_cmd(pgid, sig):
 | 
				
			||||||
    return 'kill -{} -{}'.format(sig.name, pgid)
 | 
					    return 'kill -{} -{}'.format(sig.value, pgid)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class ConnectionBase(InitCheckpoint):
 | 
					class ConnectionBase(InitCheckpoint):
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user