Fix a crash with monitor input arriving before readline_start has been called
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3749 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
		
							parent
							
								
									58a770f3a4
								
							
						
					
					
						commit
						ad8efe4b6e
					
				@ -2583,6 +2583,8 @@ void monitor_init(CharDriverState *hd, int show_banner)
 | 
				
			|||||||
    hide_banner = !show_banner;
 | 
					    hide_banner = !show_banner;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    qemu_chr_add_handlers(hd, term_can_read, term_read, term_event, NULL);
 | 
					    qemu_chr_add_handlers(hd, term_can_read, term_read, term_event, NULL);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    readline_start("", 0, monitor_handle_command1, NULL);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* XXX: use threads ? */
 | 
					/* XXX: use threads ? */
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user