1 Return-Path: <amdragon@mit.edu>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 79F37429E26
\r
6 for <notmuch@notmuchmail.org>; Mon, 12 Dec 2011 08:16:28 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5
\r
12 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id r8A64cVxXgNy for <notmuch@notmuchmail.org>;
\r
16 Mon, 12 Dec 2011 08:16:28 -0800 (PST)
\r
17 Received: from dmz-mailsec-scanner-5.mit.edu (DMZ-MAILSEC-SCANNER-5.MIT.EDU
\r
19 by olra.theworths.org (Postfix) with ESMTP id 0E1DB429E25
\r
20 for <notmuch@notmuchmail.org>; Mon, 12 Dec 2011 08:16:27 -0800 (PST)
\r
21 X-AuditID: 12074422-b7ff56d00000092f-4c-4ee628db8324
\r
22 Received: from mailhub-auth-2.mit.edu ( [18.7.62.36])
\r
23 by dmz-mailsec-scanner-5.mit.edu (Symantec Messaging Gateway) with SMTP
\r
24 id 3A.DC.02351.BD826EE4; Mon, 12 Dec 2011 11:16:27 -0500 (EST)
\r
25 Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103])
\r
26 by mailhub-auth-2.mit.edu (8.13.8/8.9.2) with ESMTP id pBCGGQw3028095;
\r
27 Mon, 12 Dec 2011 11:16:27 -0500
\r
28 Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91])
\r
29 (authenticated bits=0)
\r
30 (User authenticated as amdragon@ATHENA.MIT.EDU)
\r
31 by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id pBCGGPXM003914
\r
32 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);
\r
33 Mon, 12 Dec 2011 11:16:26 -0500 (EST)
\r
34 Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.77)
\r
35 (envelope-from <amdragon@mit.edu>)
\r
36 id 1Ra8Zk-0005mV-9W; Mon, 12 Dec 2011 11:18:00 -0500
\r
37 Date: Mon, 12 Dec 2011 11:18:00 -0500
\r
38 From: Austin Clements <amdragon@MIT.EDU>
\r
39 To: Tomi Ollila <tomi.ollila@iki.fi>
\r
40 Subject: Re: [PATCH] test/smtp-dummy: add --background option for
\r
41 backgrounding after listen(2)
\r
42 Message-ID: <20111212161800.GO2760@mit.edu>
\r
43 References: <yf6obvdn8ha.fsf@taco2.nixu.fi>
\r
45 Content-Type: text/plain; charset=us-ascii
\r
46 Content-Disposition: inline
\r
47 In-Reply-To: <yf6obvdn8ha.fsf@taco2.nixu.fi>
\r
48 User-Agent: Mutt/1.5.21 (2010-09-15)
\r
49 X-Brightmail-Tracker:
\r
50 H4sIAAAAAAAAA+NgFmphleLIzCtJLcpLzFFi42IRYrdT0b2t8czPoGeeqsX1mzOZLd6snMfq
\r
51 wORx+OtCFo9nq24xBzBFcdmkpOZklqUW6dslcGVM+f+HteA/e8WvC5/YGhg3s3UxcnJICJhI
\r
52 LG87CmWLSVy4tx7I5uIQEtjHKNF1aCGUs4FR4uXTZ6wQzkkmibPvZ0A5SxglJn2/ygTSzyKg
\r
53 KvF422dWEJtNQENi2/7ljCC2iICKxIO29WBxZgFpiW+/m8HqhQUSJc6efAxm8wpoS9yeswCs
\r
54 XgjI3npkJzNEXFDi5MwnLBC9WhI3/r0EqucAm7P8HwdImFNAR+LR+X1gY0SBVk05uY1tAqPQ
\r
55 LCTds5B0z0LoXsDIvIpRNiW3Sjc3MTOnODVZtzg5MS8vtUjXVC83s0QvNaV0EyM4sF2UdjD+
\r
56 PKh0iFGAg1GJh3en/1M/IdbEsuLK3EOMkhxMSqK8FurP/IT4kvJTKjMSizPii0pzUosPMUpw
\r
57 MCuJ8DZzA+V4UxIrq1KL8mFS0hwsSuK8dbse+gkJpCeWpGanphakFsFkZTg4lCR4jYERLCRY
\r
58 lJqeWpGWmVOCkGbi4AQZzgM0XAOkhre4IDG3ODMdIn+KUVFKnLcAJCEAksgozYPrhSWeV4zi
\r
59 QK8I86aBVPEAkxZc9yugwUxAg+NSnoAMLklESEk1MPpfu7k+R+5l1qMLXyc/6TCd9Wi56c1j
\r
60 UoWlNzoXLVyp4OO05FW2b5XOl1MfM4Lt7rdOFgrRfn+/boPeC0mp4B12z5ZbX7myQsqiNu1p
\r
61 6c/Extkr1s1ZV1kR6HTg/DHtDXM+7D60bJHCS0GZbQ/2uazNc5y6a+VerqiKrJDp23d9/+DS
\r
62 Pv3tjPISJZbijERDLeai4kQA1y2xGxcDAAA=
\r
63 Cc: notmuch@notmuchmail.org
\r
64 X-BeenThere: notmuch@notmuchmail.org
\r
65 X-Mailman-Version: 2.1.13
\r
67 List-Id: "Use and development of the notmuch mail system."
\r
68 <notmuch.notmuchmail.org>
\r
69 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
70 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
71 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
72 List-Post: <mailto:notmuch@notmuchmail.org>
\r
73 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
74 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
75 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
76 X-List-Received-Date: Mon, 12 Dec 2011 16:16:28 -0000
\r
78 Quoth Tomi Ollila on Dec 12 at 4:57 pm:
\r
79 > To avoid the possibility that smtp-dummy doesn't have chance to listen
\r
80 > its bound socket until something tries to send message to it this
\r
81 > option can be used for caller to wait until socket is already listening
\r
85 > When test_require_external_prereq() is changed to use associative
\r
86 > array to check whether prereq is missing bash script is often
\r
87 > so fast that it already waiting for smtp-dummy to exit until
\r
88 > socket is listening. i.e sending QUIT to 127.0.0.1:25025 fails
\r
89 > since there is no listener. (fork(2) & execve(2) count goes to zero
\r
90 > in test_require_external_prereq (from 3 fork()s, 2 execve()s).
\r
92 Perhaps smtp-dummy should always work this way? There's a race even
\r
93 in the working case, since Emacs could try to connect to the
\r
94 smtp-dummy before it's listening (perhaps Emacs retries in that case,
\r
95 but I couldn't find any code to do so).
\r
97 How are you going to wait on the dummy, since you don't know its PID
\r