Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 83835 Details for
Bug 127411
screen and Midnight Commander don't work on a serial console
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
mc-open-nonblock.diff
mc-open-nonblock.diff (text/plain), 827 bytes, created by
Michael Hanselmann (hansmi) (RETIRED)
on 2006-04-03 12:33:29 UTC
(
hide
)
Description:
mc-open-nonblock.diff
Filename:
MIME Type:
Creator:
Michael Hanselmann (hansmi) (RETIRED)
Created:
2006-04-03 12:33:29 UTC
Size:
827 bytes
patch
obsolete
>diff -urp mc-4.6.0.orig/src/cons.saver.c mc-4.6.0/src/cons.saver.c >--- mc-4.6.0.orig/src/cons.saver.c 2006-04-03 21:22:49.000000000 +0200 >+++ mc-4.6.0/src/cons.saver.c 2006-04-03 21:26:53.000000000 +0200 >@@ -90,7 +90,7 @@ static int check_file (char *filename, i > /* Avoiding race conditions: use of fstat makes sure that > both 'open' and 'stat' operate on the same file */ > >- fd = open (filename, O_RDWR); >+ fd = open (filename, O_RDWR | O_NONBLOCK); > if (fd == -1) > return -1; > >@@ -247,7 +247,7 @@ int main (int argc, char **argv) > * Make sure stderr points to a valid place > */ > close (2); >- stderr_fd = open ("/dev/tty", O_RDWR); >+ stderr_fd = open ("/dev/tty", O_RDWR | O_NONBLOCK); > > /* This may well happen if program is running non-root */ > if (stderr_fd == -1)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 127411
:
83219
| 83835 |
83882
|
83884
|
83886
|
84054
|
84055
|
85846