Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752324AbaFET1Q (ORCPT ); Thu, 5 Jun 2014 15:27:16 -0400 Received: from mail-vc0-f177.google.com ([209.85.220.177]:58474 "EHLO mail-vc0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751566AbaFET1N (ORCPT ); Thu, 5 Jun 2014 15:27:13 -0400 MIME-Version: 1.0 In-Reply-To: <20140605192421.GA6248@tango.0pointer.de> References: <1400687040.7272.28.camel@kazak.uk.xensource.com> <20140521230233.GA13289@wotan.suse.de> <1400753147.14637.10.camel@kazak.uk.xensource.com> <20140523232031.GA26450@wotan.suse.de> <1401269449.24800.7.camel@kazak.uk.xensource.com> <20140529232918.GG26450@wotan.suse.de> <20140601061547.GC16257@tango.0pointer.de> <20140605003103.GB22052@wotan.suse.de> <20140605112213.GA17673@tango.0pointer.de> <20140605180137.GD22052@wotan.suse.de> <20140605192421.GA6248@tango.0pointer.de> From: Andrew Lutomirski Date: Thu, 5 Jun 2014 12:26:51 -0700 X-Google-Sender-Auth: W5UwwpMdqOgPoLguwKhg3WO6Wvg Message-ID: Subject: Re: [systemd-devel] [PATCH v5 12/14] autoconf: xen: enable explicit preference option for xenstored preference To: Lennart Poettering Cc: "Luis R. Rodriguez" , Ian Campbell , Keir Fraser , Tim Deegan , Ian Jackson , "linux-kernel@vger.kernel.org" , systemd-devel@lists.freedesktop.org, linux-security-module@vger.kernel.org, Eric Biederman , Jan Beulich , xen-devel@lists.xenproject.org, "Andrew G. Morgan" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 5, 2014 at 12:24 PM, Lennart Poettering wrote: > On Thu, 05.06.14 20:01, Luis R. Rodriguez (mcgrof@suse.com) wrote: > >> > Hmm? You should "exec" the real daemon binary at the end, not just fork >> > it off. That wait the shell script process is replaced by the daemon >> > binary, which is what you want. >> >> I tried both just running it and also running exec foo; both presented >> the same issue given that shell exec does not really execve. > > Hmmm? You shell's "exec" command doesn't actually execve()? What are you > using? This doesn't sound very accurate... $ strace -e execve /bin/sh -c 'exec /bin/echo test' execve("/bin/sh", ["/bin/sh", "-c", "exec /bin/echo test"], [/* 54 vars */]) = 0 execve("/bin/echo", ["/bin/echo", "test"], [/* 54 vars */]) = 0 test +++ exited with 0 +++ I get similar results on Ubuntu using dash. --Andy -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/