From: Laurent Bercot <ska-dietlibc@skarnet.org>
To: musl@lists.openwall.com
Subject: Re: static build and dlopen
Date: Wed, 27 Aug 2014 19:48:06 +0100 [thread overview]
Message-ID: <53FE27E6.60902@skarnet.org> (raw)
In-Reply-To: <CAKfGGh2gzV67kXVCJirNE92yH-TP2dDTSK4dcXpK=pXBzwUapw@mail.gmail.com>
On 27/08/2014 18:10, piranna@gmail.com wrote:
> Yes, I though about this option before, has a dumb statically linked
> executable to work as PID 1 that just only exec Node.js and wait until
> it finishes, so I can use a standard dynamically linked one and do
> whatever I want
I don't understand why you can't do whatever you want anyway.
You can run Node.js as PID 1 even if it is dynamically linked - you
just need to have the libc (and ld-musl.so) in the filesystem. It
will work. You can run anything as PID 1 provided all its dependencies
are there at boot time. Traditional inits are usually dynamically
linked - which I think is a very bad idea, but that's another subject.
If Node.js is a special case that cannot be treated that way, then I'm
interested in hearing why.
--
Laurent
next prev parent reply other threads:[~2014-08-27 18:48 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-27 14:14 piranna
2014-08-27 15:27 ` Szabolcs Nagy
2014-08-27 17:01 ` piranna
2014-08-27 17:20 ` Justin Cormack
2014-08-27 20:07 ` piranna
2014-08-27 16:43 ` Rich Felker
2014-08-27 17:10 ` piranna
2014-08-27 18:48 ` Laurent Bercot [this message]
2014-08-27 20:19 ` piranna
2014-08-27 20:51 ` Rich Felker
2014-08-27 20:59 ` Laurent Bercot
2014-08-27 21:04 ` Rich Felker
2014-08-27 22:54 ` Kurt H Maier
2014-08-27 23:24 ` Laurent Bercot
2014-08-27 23:36 ` Brent Cook
2014-09-01 23:38 ` piranna
2014-09-02 0:38 ` Rich Felker
2014-09-02 0:49 ` piranna
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=53FE27E6.60902@skarnet.org \
--to=ska-dietlibc@skarnet.org \
--cc=musl@lists.openwall.com \
/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.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).