mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Switch run-shell over to queue the command in the background like #().
This commit is contained in:
		
							
								
								
									
										2
									
								
								job.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								job.c
									
									
									
									
									
								
							@@ -70,7 +70,6 @@ job_tree_free(struct jobs *jobs)
 | 
			
		||||
	while (!RB_EMPTY(jobs)) {
 | 
			
		||||
		job = RB_ROOT(jobs);
 | 
			
		||||
		RB_REMOVE(jobs, jobs, job);
 | 
			
		||||
		SLIST_REMOVE(&all_jobs, job, job, lentry);
 | 
			
		||||
		job_free(job);
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
@@ -120,6 +119,7 @@ job_free(struct job *job)
 | 
			
		||||
{
 | 
			
		||||
	job_kill(job);
 | 
			
		||||
 | 
			
		||||
	SLIST_REMOVE(&all_jobs, job, job, lentry);
 | 
			
		||||
	xfree(job->cmd);
 | 
			
		||||
 | 
			
		||||
	if (job->freefn != NULL && job->data != NULL)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user