mirror of
				https://github.com/topjohnwu/Magisk.git
				synced 2025-10-31 08:44:07 +00:00 
			
		
		
		
	Initialize windows size
This commit is contained in:
		
							
								
								
									
										7
									
								
								pts.c
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								pts.c
									
									
									
									
									
								
							| @@ -207,9 +207,6 @@ static void *watch_sigwinch(void *data) { | ||||
| 	sigaddset(&winch, SIGWINCH); | ||||
|  | ||||
| 	do { | ||||
| 		// Wait for a SIGWINCH | ||||
| 		sigwait(&winch, &sig); | ||||
|  | ||||
| 		if (closing_time) break; | ||||
|  | ||||
| 		// Get the new terminal size | ||||
| @@ -221,7 +218,7 @@ static void *watch_sigwinch(void *data) { | ||||
| 		// Set the new terminal size | ||||
| 		ioctl(slave, TIOCSWINSZ, &w); | ||||
|  | ||||
| 	} while (1); | ||||
| 	} while (sigwait(&winch, &sig) == 0); | ||||
|  | ||||
| 	free(data); | ||||
| 	return NULL; | ||||
| @@ -276,8 +273,6 @@ int watch_sigwinch_async(int master, int slave) { | ||||
| 		return -1; | ||||
| 	} | ||||
|  | ||||
| 	// Set the initial terminal size | ||||
| 	raise(SIGWINCH); | ||||
| 	return 0; | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 topjohnwu
					topjohnwu