Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 591219 Details for
Bug 831259
vinagre blocks on ssh stderr in look_for_stderr_errors()
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Don't block on ssh stderr
vinagre-3.3.4-dont-block-on-ssh-stderr.patch (text/plain), 1.39 KB, created by
Fabrice Bellet
on 2012-06-12 15:20:50 UTC
(
hide
)
Description:
Don't block on ssh stderr
Filename:
MIME Type:
Creator:
Fabrice Bellet
Created:
2012-06-12 15:20:50 UTC
Size:
1.39 KB
patch
obsolete
>--- vinagre-3.4.2/vinagre/vinagre-ssh.c.orig 2011-12-18 13:35:09.000000000 +0100 >+++ vinagre-3.4.2/vinagre/vinagre-ssh.c 2012-06-12 17:03:19.647875940 +0200 >@@ -667,15 +667,18 @@ get_hostname (const gchar *host) > } > > static gboolean >-look_for_stderr_errors (GDataInputStream *error_stream, GError **error) >+look_for_stderr_errors (GInputStream *error_stream, GError **error) > { >- char *line; >+ char line[128]; >+ gssize res; > > while (1) > { >- line = g_data_input_stream_read_line (error_stream, NULL, NULL, NULL); >+ res = g_pollable_input_stream_read_nonblocking >+ (G_POLLABLE_INPUT_STREAM (error_stream), >+ line, sizeof (line), NULL, error); > >- if (line == NULL) >+ if (res <= 0) > { > return TRUE; > } >@@ -787,18 +790,12 @@ vinagre_ssh_connect (GtkWindow *parent, > return FALSE; > > #ifdef G_OS_WIN32 >- u_long mode = 1; >- ioctlsocket (stderr_fd, FIONBIO, &mode); > is = g_win32_input_stream_new (stderr_fd, FALSE); > #else /* !G_OS_WIN32 */ >- fcntl (stderr_fd, F_SETFL, O_NONBLOCK | fcntl (stderr_fd, F_GETFL)); > is = g_unix_input_stream_new (stderr_fd, FALSE); > #endif /* G_OS_WIN32 */ >- error_stream = g_data_input_stream_new (is); >+ res = look_for_stderr_errors (is, error); > g_object_unref (is); >- >- res = look_for_stderr_errors (error_stream, error); >- g_object_unref (error_stream); > > if (!res) > return FALSE;
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 831259
:
591219
|
591269