From owner-freebsd-questions@FreeBSD.ORG Tue Feb 11 03:28:39 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B843CB7B for ; Tue, 11 Feb 2014 03:28:39 +0000 (UTC) Received: from alogt.com (alogt.com [69.36.191.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 905C01D1A for ; Tue, 11 Feb 2014 03:28:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=alogt.com; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date; bh=1OM9K0BP10DcyehyeMczlQBmxEXu9/6MYS9PGFcZQ5A=; b=RH5H3qQ35IK/8XIHKVtvHDFwoTczeH/XO1j1JeTfQUR0PrwbHhHJ6aOVHYVLkSbF2jh8MxnsNPf/zqr1rFqk8/RWhYaLpE45RwEH0nwhOCA6iuw6w3qP79OmzDJYDsflW3eVOFe2V+b1fupsrUr1Bfx6bKfUR333CiwbeF/Gt6g=; Received: from [39.209.30.94] (port=18983 helo=X220.alogt.com) by sl-508-2.slc.westdc.net with esmtpsa (SSLv3:DHE-RSA-AES128-SHA:128) (Exim 4.82) (envelope-from ) id 1WD41P-0049By-Bw; Mon, 10 Feb 2014 20:28:33 -0700 Date: Tue, 11 Feb 2014 11:27:45 +0800 From: Erich Dollansky To: jackywgw Subject: Re: system() call causes core dump Message-ID: <20140211112745.24c9c399@X220.alogt.com> In-Reply-To: <1392088040255-5884936.post@n5.nabble.com> References: <7B9397B189EB6E46A5EE7B4C8A4BB7CB327D117F@MBX03.exg5.exghost.com> <4AEC5E02.8040705@FreeBSD.org> <1392088040255-5884936.post@n5.nabble.com> X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.22; amd64-portbld-freebsd10.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - sl-508-2.slc.westdc.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - alogt.com X-Get-Message-Sender-Via: sl-508-2.slc.westdc.net: authenticated_id: erichsfreebsdlist@alogt.com X-Source: X-Source-Args: X-Source-Dir: Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Feb 2014 03:28:39 -0000 Hi, On Mon, 10 Feb 2014 19:07:20 -0800 (PST) jackywgw wrote: > Hi, I encounter the same problem, Can you tell me if I need to excute > shell command in multi-threaded programs, how should we do since we > can't use system? thanks > you have to use semaphores to serialise the calls. Erich