  #ifdef BROKEN_MASTER
  	/* Get the current terminal settings. */
  	if (tcgetattr(the_pty.slave, &the_pty.term) < 0)
-@@ -293,8 +329,6 @@ top:
+@@ -293,8 +343,6 @@ top:
  	/* Send the data out to the clients. */
  	for (p = clients, nclients = 0; p; p = p->next)
  	{

 }
 
 /* Signal */
@@ -249,14 +258,41 @@ pty_activity(int s)
 	struct client *p;
 	fd_set readfds, writefds;
 	int highest_fd, nclients;

 
 	int has_attached_client = 0;
 
@@ -475,6 +607,11 @@ master_process(int s, char **argv, int w
 
 	/* Create a pty in which the process is running. */
 	signal(SIGCHLD, die);
