From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1FyycI-00054w-Sb for garchives@archives.gentoo.org; Fri, 07 Jul 2006 22:16:07 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.7/8.13.6) with SMTP id k67M9ktU026277; Fri, 7 Jul 2006 22:09:46 GMT Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by robin.gentoo.org (8.13.7/8.13.6) with ESMTP id k67LsLfW016947 for ; Fri, 7 Jul 2006 21:54:22 GMT Received: by ug-out-1314.google.com with SMTP id m3so927688uge for ; Fri, 07 Jul 2006 14:54:21 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=HnpKlN8AakWId4cuDzYD99WH3tTqPDeFpNObAvFr9olpNeQiJKrQO8C7NgD1UG2AdfZKJiMNT+GjyvCLWKFMmC+yxPrNAOUjiE/Oe5gDovgl6xL/LF0hn1CCBRka1jdeDShsWbC/GyQPuTgi21B+wtFqBJJyXi4f5avUYS1DTW0= Received: by 10.78.177.3 with SMTP id z3mr897903hue; Fri, 07 Jul 2006 14:54:21 -0700 (PDT) Received: by 10.78.20.11 with HTTP; Fri, 7 Jul 2006 14:54:16 -0700 (PDT) Message-ID: <7573e9640607071454l7309902enff8c38b775caca7d@mail.gmail.com> Date: Fri, 7 Jul 2006 14:54:16 -0700 From: "Richard Fish" Sender: richard.j.fish@gmail.com To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] OT: get process name in c++ In-Reply-To: <200607072153.35550.uwix@iway.na> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1151499883.17966.13.camel@orpheus> <1152248749.31828.7.camel@orpheus> <7573e9640607071014v5bd571a0nd265fc30f58685a6@mail.gmail.com> <200607072153.35550.uwix@iway.na> X-Google-Sender-Auth: e24ca52604d3dc08 X-Archives-Salt: 737b808b-55b3-4249-806b-0ee2f455624e X-Archives-Hash: 23a870e33da585d4c7200919331e2ff5 On 7/7/06, Uwe Thiem wrote: > How about: > > getenv( "_" ); Well, that is set by bash before it exec's anything, so that should work, provided the program[s] are always exec'd by bash and not by something else. It would be nicer if "_" was set by the kernel, or even glibc. -Richard -- gentoo-user@gentoo.org mailing list