GNOME Bugzilla – Bug 649041
Cancelling file transfer from ssh location leads to disconnect.
Last modified: 2011-08-29 14:13:45 UTC
If you copy a file from a ssh location, the whole connection is severed if the transfer is cancelled in the File Operations window. This might be also an issue of the underlying gvfs.
Yeah, this is a GVfs bug; I can reproduce it 100% here with SSH, but doesn't happen e.g. with FTP.
Just came across of this, looks like a broken pipe to the sftp tunnel we made. Program received signal SIGPIPE, Broken pipe. 0x00000038c6a0e53d in write () at ../sysdeps/unix/syscall-template.S:82 82 T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS) (gdb) t a a bt
+ Trace 228182
Thread 1 (Thread 0x7ffff7db07c0 (LWP 11413))
Looks like simply ignoring the SIGPIPE signal did the trick, however it's an intrusive change and I have no idea what else it breaks. More testing on Monday...
commit 9dcde52c3e6b8164180cfe8a60896b6d5e1e8c97 Author: Tomas Bzatek <tbzatek@redhat.com> Date: Mon Aug 29 14:50:50 2011 +0200 Ignore SIGPIPE signals to avoid process termination on cancelled transfer That way we would be able to properly get EPIPE when trying to write to a socket or pipe whose far end has been closed. This happens e.g. on file copy cancellation. Glib does similar thing on GSocket initialization. https://bugzilla.gnome.org/show_bug.cgi?id=649041
*** Bug 651678 has been marked as a duplicate of this bug. ***