mirror of
				https://github.com/ARM-software/devlib.git
				synced 2025-11-04 07:51:21 +00:00 
			
		
		
		
	target: Use busybox implementation of kill
				
					
				
			For greater portability ensure that we use the busybox implementation for all kill commands.
This commit is contained in:
		@@ -759,7 +759,7 @@ class Target(object):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    def kill(self, pid, signal=None, as_root=False):
 | 
					    def kill(self, pid, signal=None, as_root=False):
 | 
				
			||||||
        signal_string = '-s {}'.format(signal) if signal else ''
 | 
					        signal_string = '-s {}'.format(signal) if signal else ''
 | 
				
			||||||
        self.execute('kill {} {}'.format(signal_string, pid), as_root=as_root)
 | 
					        self.execute('{} kill {} {}'.format(self.busybox, signal_string, pid), as_root=as_root)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def killall(self, process_name, signal=None, as_root=False):
 | 
					    def killall(self, process_name, signal=None, as_root=False):
 | 
				
			||||||
        for pid in self.get_pids_of(process_name):
 | 
					        for pid in self.get_pids_of(process_name):
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user