From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from omta38.uswest2.a.cloudfilter.net (omta38.uswest2.a.cloudfilter.net [35.89.44.37]) by sourceware.org (Postfix) with ESMTPS id 077683858D28 for ; Tue, 20 Feb 2024 20:01:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 077683858D28 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 077683858D28 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=35.89.44.37 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708459311; cv=none; b=tGUd904mBScQ88TxvWV+2Bj1yeGkmsAYlG64XpRtBhT4/fIDdDHF7QWOVQwb45z4rQpaUMV7t3VyT1neVM989qVafV+phDeaQvNaG1I31W+AtECYxL1naDGvMRhMOrCgkHAC0xsYS67pBQ5pOYkAZn/l2EEGA9IEyKXLu4T+x+w= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708459311; c=relaxed/simple; bh=vIsHGDNI8Jl7c66jyxRQL5NCJCQOZcB4/J67Ujv0AG4=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=kFNMNahuR9xETEBiM2tsCFfzCf3SQimjDJ12fzSGffzXQi96qnH558w8RtTjnI/73ZAQm//OicCwYiay+DD3J8UMcOQW42iMDqjclZqJAUvkSSKjm9m593CsTnSvzGFbu0VRokDItqZny2o28fclk6axtgM83Mt41efsqHkUvZM= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from eig-obgw-6009a.ext.cloudfilter.net ([10.0.30.184]) by cmsmtp with ESMTPS id cVOzrYmkArh9zcWJIrbWzs; Tue, 20 Feb 2024 20:01:48 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id cWJHr5QRJuUAScWJHr5cWe; Tue, 20 Feb 2024 20:01:47 +0000 X-Authority-Analysis: v=2.4 cv=CNOJXgrD c=1 sm=1 tr=0 ts=65d5052b a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=k7vzHIieQBIA:10 a=Qbun_eYptAEA:10 a=hMMCgp_--LFiXo0SiowA:9 a=ZXulRonScM0A:10 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:References :Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=vIsHGDNI8Jl7c66jyxRQL5NCJCQOZcB4/J67Ujv0AG4=; b=QYXsMSxU9ISi83w7rcOSDUZxQJ AWzutFWZleaAqzwI2/r9tCulkas6gmvSGEwctPz6yjVMTu5hD53PhNdxTcmq17u/fSg+5GE1VgDcv w1AIUx1gRmOI9qZW3F0FATYU4; Received: from 71-211-170-195.hlrn.qwest.net ([71.211.170.195]:43114 helo=murgatroyd) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1rcWJG-002pYl-37; Tue, 20 Feb 2024 13:01:47 -0700 From: Tom Tromey To: Tom de Vries Cc: gdb-patches@sourceware.org Subject: Re: [PATCH 7/8] [gdb/dap] Join JSON reader and writer threads with DAP thread References: <20240219082341.21313-1-tdevries@suse.de> <20240219082341.21313-7-tdevries@suse.de> X-Attribution: Tom Date: Tue, 20 Feb 2024 13:01:45 -0700 In-Reply-To: <20240219082341.21313-7-tdevries@suse.de> (Tom de Vries's message of "Mon, 19 Feb 2024 09:23:40 +0100") Message-ID: <87sf1m29cm.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 71.211.170.195 X-Source-L: No X-Exim-ID: 1rcWJG-002pYl-37 X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 71-211-170-195.hlrn.qwest.net (murgatroyd) [71.211.170.195]:43114 X-Source-Auth: tom+tromey.com X-Email-Count: 2 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfEKjQ9yhmebZIL6nygmcAxp8K7vwqy/ox3IRqqaxw4IEGeylhb0WrUBYAOW5RZjnOC3mxPu1u+G1f944wyL2vQq3BI2XGB3v27+sfreYqF8K9GMF4QS8 ZJpw+biz5XbEcBw7G3YU3mfUfeLs/32BpAXBVaNU3M2sIWn0sR+LfGEvrkCkYe8kSbhBNnbCrK+zILKeEnFD7n5mxXt5hR5aPss= X-Spam-Status: No, score=-3016.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,JMQ_SPF_NEUTRAL,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Tom> While we're at it, do the same for the JSON reader thread. I've been thinking about this and I am no longer sure it's ok to wait for the reader thread. I don't think DAP requires that the client shut down the pipe on exit. It only requires sending the request. So I tend to think gdb ought to exit when requested and not wait for the reader thread. Tom