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
---
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
---
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
* 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
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
* 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
* 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
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
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
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
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
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
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
13 matches
Mail list logo