diff options
| author | Ned T. Crigler <crigler@users.sourceforge.net> | 2006-09-27 23:08:22 +0000 |
|---|---|---|
| committer | Ned T. Crigler <crigler@users.sourceforge.net> | 2006-09-27 23:08:22 +0000 |
| commit | e06f8dfcdf1dbf8ac6d12075c5da9f94a894f6a9 (patch) | |
| tree | 67cb831f0e4c1908dcd47ca942f2637b7b189dfd /master.c | |
| parent | 5f6d552d2cdb017e7934620770e2a8c535b41525 (diff) | |
Add a comment to the waitattach code.
Diffstat (limited to 'master.c')
| -rw-r--r-- | master.c | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -444,9 +444,16 @@ master_process(int s, char **argv, int waitattach) FD_SET(s, &readfds); highest_fd = s; - if (clients && clients->attached) - waitattach = 0; - if (!waitattach) + /* + ** When waitattach is set, wait until the client attaches + ** before trying to read from the pty. + */ + if (waitattach) + { + if (clients && clients->attached) + waitattach = 0; + } + else { FD_SET(the_pty.fd, &readfds); if (the_pty.fd > highest_fd) |
