From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/5948 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: static build and dlopen Date: Wed, 27 Aug 2014 17:04:35 -0400 Message-ID: <20140827210435.GU12888@brightrain.aerifal.cx> References: <20140827164309.GO12888@brightrain.aerifal.cx> <53FE27E6.60902@skarnet.org> <53FE46CB.1040609@skarnet.org> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1409173502 22186 80.91.229.3 (27 Aug 2014 21:05:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 27 Aug 2014 21:05:02 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-5955-gllmg-musl=m.gmane.org@lists.openwall.com Wed Aug 27 23:04:56 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1XMkOe-0001JX-2u for gllmg-musl@plane.gmane.org; Wed, 27 Aug 2014 23:04:48 +0200 Original-Received: (qmail 29823 invoked by uid 550); 27 Aug 2014 21:04:47 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 29815 invoked from network); 27 Aug 2014 21:04:47 -0000 Content-Disposition: inline In-Reply-To: <53FE46CB.1040609@skarnet.org> User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:5948 Archived-At: On Wed, Aug 27, 2014 at 09:59:55PM +0100, Laurent Bercot wrote: > >I've done a dumb /init program that just exec the dynamically linked > >Node.js with the real /init in Javascript and it worked. Ugly hack, > >but at least it does its job :-) > > By doing this, you are effectively using Node.js as process 1, since > it is your Javascript interpreter. So there is no reason you cannot > run it directly without your hack. > > I'm still concerned about Node.js' ability to shutdown your machine > properly though. It could probably be done with the right modules. The goal here seems to be to have a "pure javascript" system, so I would assume there are Node.js modules allowing all the system-level stuff to be written in js. Rich