Skip to content

Instantly share code, notes, and snippets.

@rofl0r
rofl0r / init.c
Created August 6, 2013 21:15
minimal init daemon by rich felker, author of musl libc
#define _XOPEN_SOURCE 700
#include <signal.h>
#include <unistd.h>
int main()
{
sigset_t set;
int status;
if (getpid() != 1) return 1;
package cont
modules = main
opts = "--codegen javascript -o cont.js"
@joe9
joe9 / init.c
Created August 6, 2014 04:56 — forked from rofl0r/init.c
#define _XOPEN_SOURCE 700
#include <signal.h>
#include <unistd.h>
int main()
{
sigset_t set;
int status;
if (getpid() != 1) return 1;