[PATCH 2/5] console-client: add daemonizing support

2013-07-26 Thread Justus Winter
This patch adds daemonizing support using libdaemon. * console-client/console.c (daemonize): New variable. (options): Add --daemonize argument. (parse_opt): Handle --daemonize argument. (daemon_error): New error(3) like macro. (main): Daemonize. * console-client/Makefile: Use libdaemon specific bu

[PATCH 4/5] Add an initscript for the hurd console

2013-07-26 Thread Justus Winter
--- debian/changelog |1 + debian/hurd.hurd-console.init | 125 + 2 files changed, 126 insertions(+) create mode 100644 debian/hurd.hurd-console.init diff --git a/debian/changelog b/debian/changelog index bd8363b..aef0b7e 100644 --- a/deb

[PATCH 3/5] debian/control: Add build dependency on libdaemon

2013-07-26 Thread Justus Winter
--- debian/control |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/control b/debian/control index a2801c6..957ab53 100644 --- a/debian/control +++ b/debian/control @@ -7,7 +7,7 @@ Build-Depends: mig (>= 1.3-2), gnumach-dev (>= 2:1.3.99.dfsg.cvs20070526), libc0.3-de

[PATCH 1/5] Add configure checks for libdaemon

2013-07-26 Thread Justus Winter
* configure.ac: Add check for libdaemon. * config.make.in: Make the libdaemon specific variables available. --- config.make.in |5 + configure.ac |6 ++ 2 files changed, 11 insertions(+) diff --git a/config.make.in b/config.make.in index b8002a1..73b54de 100644 --- a/config.make

[PATCH 5/5] Drop hurd_console_startup.patch

2013-07-26 Thread Justus Winter
This is no longer necessary with the initscript in place. --- debian/patches/hurd_console_startup.patch | 32 - debian/patches/series |1 - 2 files changed, 33 deletions(-) delete mode 100644 debian/patches/hurd_console_startup.patch diff --g

[PATCH 2/3] Add proc_setinittask, make runsystem pid 1

2013-07-26 Thread Justus Winter
* hurd/process.defs (proc_setinittask): New procedure. * include/pids.h: Add HURD_PID_INIT as 1, adjust others accordingly. * init/init.c (start_child): Register the child task. * proc/proc.h (init_proc): New variable. (create_startup_proc): Rename to create_init_proc. * proc/main.c (main): Create

[PATCH 1/3] Define and use symbolic names for important processes

2013-07-26 Thread Justus Winter
* include/pids.h: New file. * init/init.c (frob_kernel_process): Use symbolic name for kernel process. * exec/exec.c (S_exec_init): Use symbolic name for startup process. * libdiskfs/boot-start.c (diskfs_S_fsys_init): Likewise. * libdiskfs/init-startup.c (_diskfs_init_completed): Likewise. * pfinet

[PATCH 3/3] init: Build and link against processUser.o

2013-07-26 Thread Justus Winter
This patch allows one to build init without the need to rebuild the libc at the expense of the user stubs being compiled into init. * Makefile (OBJS): Add processUser.o. --- init/Makefile |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init/Makefile b/init/Makefile index ff

Re: [PATCH 1/4] console-client: add daemonizing support

2013-07-26 Thread Samuel Thibault
Hello, Justus Winter, le Wed 17 Jul 2013 14:21:35 +0200, a écrit : > using libdaemon. Mmm, this might actually be posing problems, for several reasons: - bootstrapping a Hurd system - the debian installer does not currently make use of libdaemon. Could you detect libdaemon in configure, to disa

Re: [PATCH 2/4] Add (build) dependency on libdaemon

2013-07-26 Thread Samuel Thibault
Justus Winter, le Wed 17 Jul 2013 14:21:36 +0200, a écrit : > +Depends: ${misc:Depends}, hurd-libs0.3 (= ${binary:Version}), sysv-rc, > netdde (>= 0.0.20120518~), ${shlibs:Depends}, xkb-data, libdaemon0 > +Depends: ${misc:Depends}, hurd-libs0.3-udeb (= ${binary:Version}), > xkb-data-udeb, libdaem

Re: kill (0, SIGSTOP) is freezing the system (was: /hurd/init and /hurd/proc)

2013-07-26 Thread Justus Winter
Quoting Samuel Thibault (2013-07-24 15:15:52) > Justus Winter, le Wed 24 Jul 2013 08:30:52 +0200, a écrit : > > the processes below 100 that are > > not marked as essential by Guillems patch are: > > > > exec, > > That one should be easy. Yes, /hurd/init can mark it as essential. > > /sbi

Re: [PATCH] prototype: runsystem as pid 1

2013-07-26 Thread Samuel Thibault
Justus Winter, le Fri 26 Jul 2013 09:18:22 +0200, a écrit : > Quoting Samuel Thibault (2013-07-25 22:52:44) > > Justus Winter, le Thu 25 Jul 2013 22:41:09 +0200, a écrit : > > > - err = proc_getmsgport (procserver, 1, &startup); > > > + err = proc_getmsgport (procserver, 2, &startup); > > > > Ma

Re: [PATCH] prototype: runsystem as pid 1

2013-07-26 Thread Justus Winter
Quoting Samuel Thibault (2013-07-25 22:52:44) > Justus Winter, le Thu 25 Jul 2013 22:41:09 +0200, a écrit : > > - err = proc_getmsgport (procserver, 1, &startup); > > + err = proc_getmsgport (procserver, 2, &startup); > > Maybe make it a #define, so it'll be easier to change next time? :) With