X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:references :in-reply-to:content-type:content-transfer-encoding :mime-version; q=dns; s=default; b=dqTS/1ElcDfmDXhz8W6GM42231i0h B77zV2x+l3ncpP9Lg13OpQcc3pd9J3EvyafXKYyN5TLRjXhJ72y1fjTHq41n2BEl dB4CkQL4Qz5azbDJDvIktGHIZ8Lg01LF9PC8sxBnd5dPLbeh0Zc2duVW8botjq24 a6m6gFmVKBe/LY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:references :in-reply-to:content-type:content-transfer-encoding :mime-version; s=default; bh=Wo+8jkjft9AyZv8sDXaZcb8Mj04=; b=S2v aZP8XdgjEYjEnCDRmN3dVETsxqUTbnY5exlgJjLr47nZ8sP6nIK9U4ssSJsz6lEm 3sCe5FDXU/zSzNRN2PS7iKcXOyfYQdXblbBz+2ut7Q9DnXG2ymxMceXal67lqU2U LogNfoPLfin/cN5vgBnPAYOGMUnBOxtzNfaTcwbQ= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.9 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,MIME_BASE64_BLANKS autolearn=no version=3.3.2 X-HELO: USA7109MR004.ACS-INC.COM From: "Nellis, Kenneth" To: cygwin Subject: RE: strace -f hangs forever with process who creates child process Date: Mon, 24 Aug 2015 13:05:37 +0000 Message-ID: <0D835E9B9CD07F40A48423F80D3B5A702E9126C0@USA7109MB022.na.xerox.net> References: In-Reply-To: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id t7OD67aL019569 From: Qian Hong > I just found `strace -f` hangs forever for me. > > $ uname -a > CYGWIN_NT-6.1 fracting-PC 2.2.1(0.289/5/3) 2015-08-15 11:00 i686 Cygwin) > > $ cat parent.sh > ./child.sh > > $ cat child.sh > echo haha > > $ strace -f -o out.txt bash -c parent.sh #hangs forever. FWIW, this also seems to hang for me, but can't confirm that it hangs "forever", as I didn't wait that long. Ctrl/C-ing out works, but that takes several seconds to take effect. And then I can't delete out.txt: $ rm -f out.txt rm: cannot remove ‘out.txt’: Device or resource busy $ Commands 'ps' and 'who' don't indicate any other processes, but Task Manager shows another bash process. After killing that process I am then able to delete out.txt. --Ken Nellis