From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 13953 invoked from network); 27 Apr 2022 20:30:16 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 27 Apr 2022 20:30:16 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1651091416; b=PEUbWL5ZT6OfUi1AdztozC1579Un9MUFpRxx7eIy7s7ySPm6mMWY1NY66m8CAGFiqdVMZpAj9V 1eBKyJpvAey+V664GnNXNEB4nSaRNQWOPKVPiQrsSCDpW5DvV8gyAOBOx/ANlxoVQZhlZVYI7B GAoIMJMeS70R27ZWUzfstjr8JqYowQyhGLgUmnWkrl5FU2d5DLCXUnYVz/RXR6tzw7cp+1GvFu lLTQGTv+SuC/JOIz1yfOtrQGn9QPuaHLJFJPMXjpZ2BlCKE+RjL2HNKIT1vOBYGYVz05qiXLac ZeCEVCShRuupmDe+MtK5ImTbf7mndf1dEydS/EFTzUaFvw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ej1-f42.google.com) smtp.remote-ip=209.85.218.42; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1651091416; bh=KGeQdbgULZmmuMLSHYLOHBb0t/kT1kinKgag+zZ3MHM=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=NhJrWNS1sTI1REJs83OOZKFDI0udL3EZQINTiZmD841WJuK+b9jT6KNQQ5T91brdRk9iGO26gV lRlnZAGofK0MR9ACnlwRn1EJLhtfE1BdRN5ZnmO2L+XFJE7v12IcdobqbOUx66hewbsXGfSXi/ NnyUFTud9We11G69TOcThFTN/eLRFTY6Zac9UbkCYMKeNl2fmuu9F/Tu/J6SmHODckuwpBtGgm 8gF98oP6rTB2MKMyysNGDK3emTcDz86xgVqhsdu3DPvYBRgCN1WK2GtlWJtJzcLJclxNCX4hVZ CYksWBXgINDbS6H1NW3um64uJTKYXuA5XQodi3DVl3qsIQ==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:To:Subject:Message-ID: Date:From:In-Reply-To:References:MIME-Version:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=a23KeGoD6BDFJiJIvUHXE0QPflpuwxwrDlha/swK39o=; b=HGG3Tzoc2B7oFBf6/O2p6uGAYC 1F3oTCDphsnc7uVDaH2Pyet6LZlo6oo4+HZKqd3fhXq/sRFL5cR8TMRWmsvs8pY18q/rlJ/AIJZXw jVrls8tUdhPXA4goLY3aOFEtE8HlZCQdhPtAuWfIy70skYbm6ikhlI7Z+YXz81NKnLOMj6hKBlhgw fnaGpmcIYJPAK3/Cfv9PKCOisve6L3qV6/JhwsH37fora//SAV0J/IKk8p4e4LT6K3GtXFZ9W6edq HPhIWuTV8HV15AAdxlKNy0pW2/mvyMX/ym4ifGxRpoHJaM8zIoR8HChBFr76cic0qQ4XfhtF4jM+P Ky7Budrw==; Received: from authenticated user by zero.zsh.org with local id 1njoIh-0006G7-Nr; Wed, 27 Apr 2022 20:30:15 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ej1-f42.google.com) smtp.remote-ip=209.85.218.42; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-ej1-f42.google.com ([209.85.218.42]:46908) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1njoIR-0005vw-Qv; Wed, 27 Apr 2022 20:30:01 +0000 Received: by mail-ej1-f42.google.com with SMTP id j6so5595706ejc.13 for ; Wed, 27 Apr 2022 13:29:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=a23KeGoD6BDFJiJIvUHXE0QPflpuwxwrDlha/swK39o=; b=QCSfT9+AUURuPl6XyylROyfsRILx7eU3it0m+q2U+PJwpSpISzreYm/KKIcHNLMkZz gdvYta2BIrRlmPtqrxCXrog5qmkyUkFlPDtHUhXmCu7Koahkz1bbQwQX12omDc90Gygp /I3EOqVr04OGKmO5ee+/wgABVaYE5TxjZNvZLcWc4TLo3CbYIC9EAcoghe1kNcabRNm5 n5rg+4Gm+ShHGSbG1UkXnsmmHBB2J/ekSfsPGB0d1wMHawsoP5+Mp9cFQsGG4K+aYIoh N2fFEhx8+vadGNJLnBXinSEQOsiKxHgJJrtJJ6cwV8vA/Vobw2oquAfL3DAylEnlVmkP RDGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=a23KeGoD6BDFJiJIvUHXE0QPflpuwxwrDlha/swK39o=; b=pVQirfCghZqgi+xVQOveP40HfQzSK4QnR+NYdirq/Z+h5Os+sMG7i7BrXxYhkZCwVU R24gcMogDtufBdlnJa0w0QVu05fdmvuxWaAYf9hy4QpDv7AvdmCCo5wtcNfMc0Ccmz9u p0tild8Wmw7qntVvRhEPqz0bZjJr6ZujUnydpngbd7KyuJg5ncaqMYaCz3hHnpWV9Rab OpF3hGfeWNVGZq1i8z6tW7uZRdDpkK+Q9QlSGXbz8QWY4vbguRss3FZ4YEhaI+uJfoLN J28KjEGF0xYvppqXGFbX8C7ELRHtewvySMrDndMhFaaSgJLZd5r0eZh+Sng238FFgSKC ZjRw== X-Gm-Message-State: AOAM530BBoysbHtX9m7JxeJP4uvqqQxROLfrveczLaoAGYRno3//BRZ3 TnZsqrwlkvsWLOxphkqyKDkMyh47TIMURSA+LpWQx+Kl950qmCdg X-Google-Smtp-Source: ABdhPJz0Ar7tPF/CDajREzHt7EJJ6hzOaTMpwWg/mG8qOuIIcPO9UzfO9d4Pzr/aU8PzF51Ew3nOha2QA/0cRLkZxno= X-Received: by 2002:a17:906:c1d7:b0:6e8:4f18:fede with SMTP id bw23-20020a170906c1d700b006e84f18fedemr28410925ejb.95.1651091399142; Wed, 27 Apr 2022 13:29:59 -0700 (PDT) MIME-Version: 1.0 References: <20220426003649.GA100943@zira.vinc17.org> <20220426030002.GC100943@zira.vinc17.org> <20220426090722.GD100943@zira.vinc17.org> <20220426091833.GE100943@zira.vinc17.org> <20220426100708.GA129732@zira.vinc17.org> In-Reply-To: From: Bart Schaefer Date: Wed, 27 Apr 2022 13:29:47 -0700 Message-ID: Subject: Re: pipeline that cannot be interrupted To: Zsh hackers list Content-Type: text/plain; charset="UTF-8" X-Seq: 50125 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: On Wed, Apr 27, 2022 at 1:07 PM Bart Schaefer wrote: > > I don't have time right now to dig any further OK, I fibbed a little ... but I really don't have time to chase down what is really going on. > zsh-5.5.1 - a single ^C returns to the prompt zsh-5.6 - a single ^C returns to the prompt zsh-5.6.1 - broken as Vincent describes That points to workers/43409 as the culprit, but ... > zsh-5.6.2 - first ^C jumps to R2, second ^C to prompt ... that means workers/43446 partly fixed it? > zsh-5.7.1 - broken in the way Vincent describes And workers/43535 broke it again. Naively, the following not-really-a-patch-yet fixes it, and all tests still pass. diff --git a/Src/jobs.c b/Src/jobs.c index af0a1233d..8ed2219bb 100644 --- a/Src/jobs.c +++ b/Src/jobs.c @@ -1476,7 +1476,7 @@ addproc(pid_t pid, char *text, int aux, struct timeval *bgtime, * set it for that, too. */ if (gleader != -1) { - jobtab[thisjob].gleader = gleader; + jobtab[thisjob].gleader = pid /* gleader */; if (list_pipe_job_used != -1) jobtab[list_pipe_job_used].gleader = gleader; /*