public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Rogier Wolff <R.E.Wolff@BitWizard.nl>
To: DervishD <raul@pleyades.net>
Cc: Horst von Brand <brand@jupiter.cs.uni-dortmund.de>,
	"Perez-Gonzalez, Inaky" <inaky.perez-gonzalez@intel.com>,
	Linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: argv0 revisited...
Date: Fri, 17 Jan 2003 11:51:03 +0100	[thread overview]
Message-ID: <20030117115103.A5284@bitwizard.nl> (raw)
In-Reply-To: <20030116112745.GE87@DervishD>

On Thu, Jan 16, 2003 at 12:27:45PM +0100, DervishD wrote:
>     That is, for clarity, those should be 'renamed'. I cannot rename
> the binary, because all them are in the same binary. The only way is
> mangling argv[0] in each fork, that's all. Currently, as I know for

ln init klogd
ln init slog
ln init into

main (...)
{
   if (strstr (argv[0], "klogd")) 
	go_do_klogd ();
...

This is similar to what busybox uses. 

			Roger. 

-- 
** R.E.Wolff@BitWizard.nl ** http://www.BitWizard.nl/ ** +31-15-2600998 **
*-- BitWizard writes Linux device drivers for any device you may have! --*
* The Worlds Ecosystem is a stable system. Stable systems may experience *
* excursions from the stable situation. We are currently in such an      * 
* excursion: The stable situation does not include humans. ***************

  reply	other threads:[~2003-01-17 10:42 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-15 18:22 argv0 revisited Perez-Gonzalez, Inaky
2003-01-15 18:44 ` DervishD
2003-01-16 11:04   ` Horst von Brand
2003-01-16 11:27     ` DervishD
2003-01-17 10:51       ` Rogier Wolff [this message]
2003-01-17 11:20         ` DervishD
     [not found]       ` <200301161603.h0GG3DX0001895@eeyore.valparaiso.cl>
2003-01-17 10:58         ` DervishD
  -- strict thread matches above, loose matches on Subject: below --
2003-01-15 18:51 Perez-Gonzalez, Inaky
2003-01-15 19:19 ` DervishD
2003-01-15 19:46   ` Miquel van Smoorenburg
2003-01-15 20:22     ` DervishD
2003-01-16 14:59     ` Jakob Oestergaard
2003-01-17 10:55       ` DervishD
2003-01-15 18:17 DervishD

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030117115103.A5284@bitwizard.nl \
    --to=r.e.wolff@bitwizard.nl \
    --cc=brand@jupiter.cs.uni-dortmund.de \
    --cc=inaky.perez-gonzalez@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=raul@pleyades.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox