From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alex Hutcheson via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#71259: 29.1; Tramp connection property "direct-async-process" causes job control not to work in M-x shell buffers Date: Wed, 29 May 2024 13:55:43 +0000 Message-ID: Reply-To: Alex Hutcheson Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8"; format=flowed; delsp=yes Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19110"; mail-complaints-to="usenet@ciao.gmane.io" To: 71259@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 29 15:57:15 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sCJnn-0004nM-FS for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 29 May 2024 15:57:15 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sCJnY-0003wU-HT; Wed, 29 May 2024 09:57:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sCJnQ-0003w0-Se for bug-gnu-emacs@gnu.org; Wed, 29 May 2024 09:56:53 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sCJnQ-0003q4-JN for bug-gnu-emacs@gnu.org; Wed, 29 May 2024 09:56:52 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sCJna-0000so-4G for bug-gnu-emacs@gnu.org; Wed, 29 May 2024 09:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alex Hutcheson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 May 2024 13:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 71259 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.17169909663333 (code B ref -1); Wed, 29 May 2024 13:57:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 May 2024 13:56:06 +0000 Original-Received: from localhost ([127.0.0.1]:36319 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sCJmf-0000rh-JN for submit@debbugs.gnu.org; Wed, 29 May 2024 09:56:05 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:47952) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <34jNXZg0KDd8BMFYIVUDIFTPOHPPHMF.DPNCVH-HOV-FNBDTHOV.PSH@flex--alexhutcheson.bounces.google.com>) id 1sCJmd-0000rb-As for submit@debbugs.gnu.org; Wed, 29 May 2024 09:56:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <34jNXZg0KDd8BMFYIVUDIFTPOHPPHMF.DPNCVH-HOV-FNBDTHOV.PSH@flex--alexhutcheson.bounces.google.com>) id 1sCJmQ-0003gm-FM for bug-gnu-emacs@gnu.org; Wed, 29 May 2024 09:55:50 -0400 Original-Received: from mail-yw1-x1149.google.com ([2607:f8b0:4864:20::1149]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <34jNXZg0KDd8BMFYIVUDIFTPOHPPHMF.DPNCVH-HOV-FNBDTHOV.PSH@flex--alexhutcheson.bounces.google.com>) id 1sCJmO-0003fY-TK for bug-gnu-emacs@gnu.org; Wed, 29 May 2024 09:55:50 -0400 Original-Received: by mail-yw1-x1149.google.com with SMTP id 00721157ae682-629638f1cb0so33447827b3.3 for ; Wed, 29 May 2024 06:55:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1716990947; x=1717595747; darn=gnu.org; h=to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=CZwvbkV+hfZqLIFirIbp99JiJDYmf522mnpn6v+mA70=; b=GNSp/8P+ujTSM2bDtmsjhn3wwbRjp0cB9WAjrv/yqX5dCLJvT5vGaNdZvATi7QITCW MZXl4IaJfpNJnU2SyVqiSJYNH/gQ6yha6GGefTFqr2B4tWe+s2fVYZ016lvmFZ3mqi+7 m0nIJoKW3Z43MXRpNvckeANT/Pij+MF8WJdZluWqxmryzB7DjW961gtdtXM12M6LnmD8 uF0+F/0q8TPYTQuIA9NHYJb5v2mDpyVfCanOH5t3o7L3v9KP5DVJu9hKWPvtzW3SjWEW xcOQlqdWdBp6zhUEC3Wu5HBDncvfn7WyF3+RHDEaRUsedjTDnH091/wFu6OBvjsgCmzx 4Wxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716990947; x=1717595747; h=to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=CZwvbkV+hfZqLIFirIbp99JiJDYmf522mnpn6v+mA70=; b=PqVRJsLa9PmGaP8EVMXsLPOqyjcXWDl/RubhHSYZgO0JODRnr9CEjggAOB8Vva+/1H aLjSC4a7/EuOU/jJAwnVx0VgCm2KBiUWN7zH+GAIb3p5xySfLzURchK5XydgJ1gucBaN qC6pnTeq3o1ZjkjhG3VyAhEqz/9TNjLN9dE5DlG2NvfBARfpEGiWeeZD27jRFpoBqynv /P9NxUb1+0DRDn35AfcctbmgG6mIk8NMfoRXC4oPJKZzTTueZKq0nuPZipz6OCt9Aef+ 1nChxRFKJNip2hflmFp7CzlhFOTFOU0hrcJitSPaVlPjrGU+3fs0HW/dJSsV8Yw1AEkR NDRw== X-Gm-Message-State: AOJu0Yw4Nef3KH/KZ4oTZddsZtnEenkt9uW4i799R+WUIBneWL4UUFfC vdBM35FaYZ8MTPCUW/7Kui61K0FJvRSixLaxcX6iavo1SpVv0bJgAJR1yBw55ieGM1m7iirdBLm yNgMdk449vztjDduUxAefPKmFsM0Q/lZazcQwUmLZY2UjTEaxU5Yd2ntGqY9MWGzPHDBwCRlDsQ 7xEgYGR6wWE3Ef1okYgYu3EAP35rsjxjOVyi1POh7/2ldKVaz2jmLBp2ciFofBgBXvpQUi X-Google-Smtp-Source: AGHT+IEItC99Ewc3qyuQwlvIHQmicgpW1iwv60f9DBmuuMrw2Yds7DLW8eDa5oqEfPV67NbOspr3LJiFej312fJr8y+E X-Received: from alexh.c.googlers.com ([fda3:e722:ac3:cc00:2b:7d90:c0a8:418]) (user=alexhutcheson job=sendgmr) by 2002:a81:4c89:0:b0:62a:45ce:a268 with SMTP id 00721157ae682-62a45cea4d3mr16210457b3.9.1716990946963; Wed, 29 May 2024 06:55:46 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::1149; envelope-from=34jNXZg0KDd8BMFYIVUDIFTPOHPPHMF.DPNCVH-HOV-FNBDTHOV.PSH@flex--alexhutcheson.bounces.google.com; helo=mail-yw1-x1149.google.com X-Spam_score_int: -95 X-Spam_score: -9.6 X-Spam_bar: --------- X-Spam_report: (-9.6 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, USER_IN_DEF_DKIM_WL=-7.5 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:286153 Archived-At: To reproduce: 1. Start emacs with emacs -Q 2. Eval the following: (require 'tramp) ;; Enable direct-async-process for all SSH connections (add-to-list 'tramp-connection-properties (list "/ssh:.*" "direct-async-process" t)) 3. Start a Tramp SSH connection: C-x C-f /ssh:some.host.com: 4. Start a shell buffer with M-x shell. Choose sh or bash as remote shell (haven't tested with others) Expected behavior: Shell buffer shows a shell on the remote host. Job control (C-c C-z), fg, bg, etc. all work. Actual behavior: Shell buffer starts a shell, but shows errors at the top of the buffer: sh: cannot set terminal process group (128765): Inappropriate ioctl for device sh: no job control in this shell Shell mostly works, but job control features don't work. C-c C-z does nothing C-c C-c kills the shell, rather than the currently running job fg and bg give errors like: sh: fg: no job control In GNU Emacs 29.1 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.18.0, Xaw3d scroll bars) of 2024-01-22, modified by Debian built on kokoro-ubuntu System Description: Debian GNU/Linux rodete Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XAW3D XDBE XIM XINPUT2 XPM LUCID ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix