Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
aace035e
Commit
aace035e
authored
Feb 15, 2000
by
Gerd Moellmann
Browse files
(BROKEN_PTY_READ_AFTER_EAGAIN): Define.
parent
3433b6bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
src/s/freebsd.h
src/s/freebsd.h
+16
-0
No files found.
src/s/freebsd.h
View file @
aace035e
...
...
@@ -151,3 +151,19 @@
/usr/local/include or libs in /usr/local/lib by default. */
#define C_SWITCH_SYSTEM -I /usr/X11R6/include -I /usr/local/include -L /usr/local/lib
/* Circumvent a bug in FreeBSD. In the following sequence of
writes/reads on a PTY, read(2) returns bogus data:
write(2) 1022 bytes
write(2) 954 bytes, get EAGAIN
read(2) 1024 bytes in process_read_output
read(2) 11 bytes in process_read_output
That is, read(2) returns more bytes than have ever been written
successfully. The 1033 bytes read are the 1022 bytes written
successfully after processing (for example with CRs added if the
terminal is set up that way which it is here). The same bytes will
be seen again in a later read(2), without the CRs. */
#define BROKEN_PTY_READ_AFTER_EAGAIN 1
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment