]> git.eshelyaron.com Git - emacs.git/commitdiff
Improve Tramp's make-process handling for Solaris
authorMichael Albinus <michael.albinus@gmx.de>
Sat, 10 May 2025 08:05:51 +0000 (10:05 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sat, 10 May 2025 14:04:32 +0000 (16:04 +0200)
* lisp/net/tramp-sh.el (tramp-sh-handle-make-process):
Disable buffering also for remote Solaris hosts.
Reported by Stacey Marshall <stacey.marshall@gmail.com>.

(cherry picked from commit 1a2c29b5317357ba451fdd6f308675a1c6cbba2e)

lisp/net/tramp-sh.el

index 74f4752e860fe1eda098d72e6cec6ba6e9eec123..1af038735485e01063f6010e1acc528a0e081e76 100644 (file)
@@ -3126,7 +3126,9 @@ will be used."
                        (let ((pid (tramp-send-command-and-read v "echo $$")))
                          (setq p (tramp-get-connection-process v))
                          (process-put p 'remote-pid pid))
-                       (when (memq connection-type '(nil pipe))
+                       (when
+                           (or (memq connection-type '(nil pipe))
+                               (tramp-check-remote-uname v tramp-sunos-unames))
                          ;; Disable carriage return to newline
                          ;; translation.  This does not work on
                          ;; macOS, see Bug#50748.
@@ -3142,6 +3144,9 @@ will be used."
                          ;; should set a timeout
                          ;; instead.  See `tramp-pipe-stty-settings'.
                          ;; (Bug#62093)
+                         ;; On Solaris, the maximum line length
+                         ;; depends also on MAX_CANON (256).  So we
+                         ;; disable buffering as well.
                          ;; FIXME: Shall we rather use "stty raw"?
                          (tramp-send-command
                           v (format