public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: DervishD <raul@pleyades.net>
To: Horst von Brand <brand@jupiter.cs.uni-dortmund.de>
Cc: Linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: argv0 revisited...
Date: Fri, 17 Jan 2003 11:58:54 +0100	[thread overview]
Message-ID: <20030117105854.GG47@DervishD> (raw)
In-Reply-To: <200301161603.h0GG3DX0001895@eeyore.valparaiso.cl>

    Hi Horst :)

> > some instances of a process called 'init'. The first is an init,
> > true, but the second is the klogd emulator, the third is the slogd
> > emulator and all other are the gettylogin emulator.
> Something like nash that RH uses on their initrd (it is sh, and modprobe,
> and mount, and ...; so they save on libc and random boilerplate code which
> is only once on the disk), or like a package called swish (or something
> like that), that is a shell which has ls, rm, ... builtin?

    I'm afraid that those use symlinks or hardlinks to run every
different personality. What my init does is more or less (no real
code):

    pid=fork();
    if (!pid) do_klog();
    ...
    pid=fork();
    if (!pid) do_slog();

    So, in function do_klog() we would like to change argv[0]. Things
like busybox and the like uses symlinks or mechanisms like 'command
subcommand'.

    I'll give a look at the microdistros, anyway :)) Thanks :)
    Raúl

  parent reply	other threads:[~2003-01-17 11:02 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
2003-01-17 11:20         ` DervishD
     [not found]       ` <200301161603.h0GG3DX0001895@eeyore.valparaiso.cl>
2003-01-17 10:58         ` DervishD [this message]
  -- 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=20030117105854.GG47@DervishD \
    --to=raul@pleyades.net \
    --cc=brand@jupiter.cs.uni-dortmund.de \
    --cc=linux-kernel@vger.kernel.org \
    /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