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 10705 invoked from network); 12 Jul 2021 10:03:01 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 12 Jul 2021 10:03:01 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1626084181; b=F0uB/Qpo290pjlFGUdHx5qkJ6J6vHfyCCd2uEbRoAAY1rAauMMZ5MFH5SDwQtd6Hgkjt8PK5Cq BPgWAvqQAt0xBTPkhlYfYPVHbUFszOwQvYpsy6S22vC9BzbF45YoaQDivJPGXSR3j/p9Olu5DJ I8RHcVLnb+EsAmJFQbIZ6HkqQu42oB7lgk0yVNWChLBXX+JfY+OGXbS2MZnCc2x+nV33GgvImv VNJ0Nyt7LrtghpVlsJdb7sUOIwai8PeGl7/Ms7tf+DIVQMLZsExQAXCC+lXjq/D5t0gngXhoni eYkP9aG8hwLxy62Tt5ENuJtqTI75ijF0nOMsVTOHIpSEJw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (cventin.lip.ens-lyon.fr) smtp.remote-ip=140.77.13.17; dmarc=none header.from=vinc17.net; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1626084181; bh=m8PNn6jwbDPhp2YA3Sp4lePIKC5GOutB59XT2Ebmdxo=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:MIME-Version: Message-ID:Subject:To:From:Date:DKIM-Signature; b=TWb9PJLpHJd3e9QqaajG4zQR5vKXdLmGVssngfIp4V1RVd6KG8kwY7oHATrT4L9hNycKftuleH ZTg+dTvJwFPgR+43LVX3JadFXSVi0V8jByy4H1XbDliw3/BP2td25ghpmyEV6EnfVVtj0O0zNF gau0A9QRq+kMDF/9J3BGMck2jLKTRKL/d/KgtK7i1Ur1ZOFGiwui04fOtj+aYs8+nimEEGbjUd 6VWzsgMie4vvQOhqqGGqCA0GfE29u8n5r9MqZWg65tSY81mcudtUBklrr3prki8g04fdhZq58/ GkZphuXOzQgUDsZTo2n0rgy9CHHp+B+K8Sc4Xoc8I3XeBw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Message-ID:Subject:To:From:Date:Reply-To:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References; bh=ogNZ7M8Tshhzini6nRp80iHXkkyiy7nOOCodRZTeJ7E=; b=T6U5ENYhj15swUiv5Y0HkOaMrq 73BmIUDnNV2GgyLLSOYe7gMST/619Qhg9NfkqeP4a+4efpJYpYF9qA3QvgMnELt8zlS+8oVj8cwpd 7BgGOJQ9mC7mKwL7+OpMnUz/H9AKLTnGZztMWSF+ZwEvL4jtk0oHoXmMQAASG/ihp2RLbPRrIDkjP /6hfJ3XPn5RvxjJpjnW9MzAgsXpSXJ6PZt0pvYXAkwvSXKuTnKXG85nVf1MECGY5mwN7ap+1AsQH1 AbJaKLb2o7mLxxn6J7+0EyidgR2xY48cEy0aeM3LzWW9mmRCjQbD3DdeWG0sFrWy4+zOjfsgDttOQ DTX2cWAQ==; Received: from authenticated user by zero.zsh.org with local id 1m2smC-0005uo-SL; Mon, 12 Jul 2021 10:03:00 +0000 Authentication-Results: zsh.org; iprev=pass (cventin.lip.ens-lyon.fr) smtp.remote-ip=140.77.13.17; dmarc=none header.from=vinc17.net; arc=none Received: from cventin.lip.ens-lyon.fr ([140.77.13.17]:56382) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1m2sle-0005cl-9g; Mon, 12 Jul 2021 10:02:26 +0000 Received: from vlefevre by cventin.lip.ens-lyon.fr with local (Exim 4.94.2) (envelope-from ) id 1m2slc-0005vt-N5; Mon, 12 Jul 2021 12:02:24 +0200 Date: Mon, 12 Jul 2021 12:02:24 +0200 From: Vincent Lefevre To: zsh-workers@zsh.org Subject: [BUG] zsh dies in case of EIO with echo in .zlogout / ENOTTY Message-ID: <20210712100224.GA9599@cventin.lip.ens-lyon.fr> Mail-Followup-To: zsh-workers@zsh.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/2.1+25 (2a9220b2) vl-138565 (2021-07-09) X-Seq: 49161 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: In my .zlogout, I have an "echo" command. However, if the terminal is no longer there, the "echo" yields EIO errors and the remaining of the .zlogout is not executed, e.g. with "echo foo" in .zlogout and xterm -e strace -f -o str.out zsh -l I get 17099 write(1, "foo\n", 4) = -1 EIO (Input/output error) 17099 ioctl(2, TCGETS, 0x7ffc67792c80) = -1 EIO (Input/output error) 17099 write(2, "/home/vlefevre/.zlogout:echo:7: "..., 64) = -1 EIO (Input/output error) 17099 ioctl(2, TCGETS, 0x7ffc67793030) = -1 EIO (Input/output error) 17099 write(2, "/home/vlefevre/.zlogout:7: write"..., 59) = -1 EIO (Input/output error) 17099 rt_sigprocmask(SIG_BLOCK, [CHLD], [CHLD WINCH], 8) = 0 17099 rt_sigprocmask(SIG_UNBLOCK, [CHLD], [CHLD WINCH], 8) = 0 17099 ioctl(2, TCGETS, 0x7ffc67794790) = -1 EIO (Input/output error) 17099 write(2, "/home/vlefevre/.zlogout:8: write"..., 39) = -1 EIO (Input/output error) 17099 close(11) = 0 17099 ioctl(10, TIOCSPGRP, [17096]) = -1 ENOTTY (Inappropriate ioctl for device) 17099 setpgid(0, 17096) = 0 17099 getpid() = 17099 17099 exit_group(1) = ? 17099 +++ exited with 1 +++ -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)