Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 96110 Details for
Bug 146437
app-misc/mc-4.6.(0|1) bug in subshell
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for subshell.c
mc-4.6.1-subshell.patch (text/plain), 1.38 KB, created by
Yaroslav Isakov
on 2006-09-05 13:44:02 UTC
(
hide
)
Description:
patch for subshell.c
Filename:
MIME Type:
Creator:
Yaroslav Isakov
Created:
2006-09-05 13:44:02 UTC
Size:
1.38 KB
patch
obsolete
>--- mc-4.6.1/src/subshell.c.1 2005-06-07 13:19:19.000000000 +0400 >+++ mc-4.6.1/src/subshell.c 2006-05-01 15:04:51.000000000 +0400 >@@ -91,6 +91,9 @@ > TRUE; > #endif > >+/* Don't allow ctrl+o (panels ON) if shell already dunning a command: */ >+int subshell_blocks_ctrlo=1; >+ > /* File descriptor of the pseudoterminal used by the subshell */ > int subshell_pty = 0; > >@@ -894,7 +897,7 @@ > fd_set read_set; /* For `select' */ > int maxfdp; > int bytes; /* For the return value from `read' */ >- int i; /* Loop counter */ >+ int i,j; /* Loop counter */ > > struct timeval wtime; /* Maximum time we wait for the subshell */ > struct timeval *wptr; >@@ -992,6 +995,18 @@ > exit (1); > } > >+ if (subshell_blocks_ctrlo) { >+ if (pty_buffer[0] == subshell_switch_key && >+ subshell_ready == TRUE) { >+ subshell_state = INACTIVE; >+ return TRUE; >+ } >+ // remove ctrl+o codes from buffer: >+ for (i = 0,j = 0; i < bytes; ++i) >+ if (pty_buffer[i] != subshell_switch_key) >+ pty_buffer[j++] = pty_buffer[i]; >+ bytes = j; >+ } else { > for (i = 0; i < bytes; ++i) > if (pty_buffer[i] == subshell_switch_key) { > write (subshell_pty, pty_buffer, i); >@@ -1000,6 +1015,7 @@ > return TRUE; > } > >+ } > write (subshell_pty, pty_buffer, bytes); > subshell_ready = FALSE; > } else {
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 146437
:
96109
| 96110