Mercurial > emacs
comparison src/process.c @ 6823:e0680426ff8e
(send_process): Test pty_flag field for nil, not 0.
| author | Richard M. Stallman <rms@gnu.org> |
|---|---|
| date | Tue, 12 Apr 1994 04:39:34 +0000 |
| parents | b1cde622fa65 |
| children | bcaddbe53068 |
comparison
equal
deleted
inserted
replaced
| 6822:69c4ca88cf5e | 6823:e0680426ff8e |
|---|---|
| 2287 #endif | 2287 #endif |
| 2288 } | 2288 } |
| 2289 | 2289 |
| 2290 /* Don't send more than pty_max_bytes bytes at a time. */ | 2290 /* Don't send more than pty_max_bytes bytes at a time. */ |
| 2291 /* Subtract 1 to leave room for the EOF. */ | 2291 /* Subtract 1 to leave room for the EOF. */ |
| 2292 if (this >= pty_max_bytes && XPROCESS (proc)->pty_flag != 0) | 2292 if (this >= pty_max_bytes && !NILP (XPROCESS (proc)->pty_flag)) |
| 2293 this = pty_max_bytes - 1; | 2293 this = pty_max_bytes - 1; |
| 2294 | 2294 |
| 2295 old_sigpipe = (SIGTYPE (*) ()) signal (SIGPIPE, send_process_trap); | 2295 old_sigpipe = (SIGTYPE (*) ()) signal (SIGPIPE, send_process_trap); |
| 2296 rv = write (XINT (XPROCESS (proc)->outfd), buf, this); | 2296 rv = write (XINT (XPROCESS (proc)->outfd), buf, this); |
| 2297 | 2297 |
