mirror of
				https://github.com/Mikaela/Limnoria.git
				synced 2025-10-30 23:27:24 +01:00 
			
		
		
		
	commands.process: return immediately when terminating process, without having to deal with the queue.
otherwise, we have to block for $smalldelay between putting and getting the item, since queue putting is not instantaneous and sometimes we would get 'nothing returned' instead of the timeout message.
This commit is contained in:
		
							parent
							
								
									e779b70609
								
							
						
					
					
						commit
						27be9ceb74
					
				| @ -90,7 +90,7 @@ def process(f, *args, **kwargs): | ||||
|     p.join(timeout) | ||||
|     if p.is_alive(): | ||||
|         p.terminate() | ||||
|         q.put("%s aborted due to timeout." % (p.name,)) | ||||
|         return "%s aborted due to timeout." % (p.name,) | ||||
|     try: | ||||
|         v = q.get(block=False) | ||||
|     except Queue.Empty: | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Daniel Folkinshteyn
						Daniel Folkinshteyn