Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 15 Jan 2003 13:14:04 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 15 Jan 2003 13:14:04 -0500 Received: from petasus.ch.intel.com ([143.182.124.5]:48834 "EHLO petasus.ch.intel.com") by vger.kernel.org with ESMTP id ; Wed, 15 Jan 2003 13:14:03 -0500 Message-ID: From: "Perez-Gonzalez, Inaky" To: "'DervishD'" , Linux-kernel Subject: RE: argv0 revisited... Date: Wed, 15 Jan 2003 10:22:51 -0800 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org > How can I know, more or less portably, which is the name of the > disk binary corresponding to my core image? Since 'proc' is not > mounted at this time, I cannot consult my mappings not my 'exe' > link. Since this init is run as root, any that root can do is > welcome. Although I would like a portable solution, any solution that > works under *any* Linux kernel is welcome... What about mounting /proc from inside your program? Not a big deal, easy sollution ... Inaky Perez-Gonzalez -- Not speaking for Intel - opinions are my own [or my fault] - 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/