• Michael Albinus's avatar
    Work on accept-process-output in Tramp · b32ac17c
    Michael Albinus authored
    * lisp/net/tramp.el (tramp-accept-process-output): Rework timer
    handling.
    (tramp-call-process): Adapt VEC if nil.
    (tramp-interrupt-process): Use `tramp-accept-process-output'.
    (tramp-process-lines): New defun.
    * lisp/net/tramp-adb.el (tramp-adb-parse-device-names):
    * lisp/net/tramp-rclone.el (tramp-rclone-parse-device-names): Use it.
    
    * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-notify-add-watch):
    Use timeout 0 in `tramp-accept-process-output'.
    
    * test/lisp/net/tramp-tests.el (tramp--test-timeout-handler): Move up.
    (tramp-test29-start-file-process, tramp-test30-make-process)
    (tramp-test32-shell-command)
    (tramp--test-shell-command-to-string-asynchronously): Use it.
    (tramp-test35-remote-path): Suppress warning.
    (tramp--test-asynchronous-requests-timeout): New defconst.
    (tramp-test43-asynchronous-requests): Skip if not the only test.
    Use `tramp--test-asynchronous-requests-timeout'.
    Remove instrumentation.  Use `start-process-shell-command' for
    watchdog.  Add timeout in timer function.  Print status messages.
    Remove file operations from sentinel.  Suppress timers in
    `accept-process-output'.
    b32ac17c
tramp-tests.el 204 KB