mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	gh-131913: multiprocessing: add interrupt for POSIX (GH-132453)
* multiprocessing: interrupt Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									862fd89036
								
							
						
					
					
						commit
						77605fa3bb
					
				
					 6 changed files with 54 additions and 2 deletions
				
			
		|  | @ -125,6 +125,13 @@ def start(self): | |||
|         del self._target, self._args, self._kwargs | ||||
|         _children.add(self) | ||||
| 
 | ||||
|     def interrupt(self): | ||||
|         ''' | ||||
|         Terminate process; sends SIGINT signal | ||||
|         ''' | ||||
|         self._check_closed() | ||||
|         self._popen.interrupt() | ||||
| 
 | ||||
|     def terminate(self): | ||||
|         ''' | ||||
|         Terminate process; sends SIGTERM signal or uses TerminateProcess() | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 pulkin
						pulkin