[PATCH] Make start_code and end_code available in /proc/*/stat

2013-08-05 Thread Justus Winter
This makes killall5 actually kill any processes not marked as important. * process.c (process_file_gc_stat): Fix {start,end}_code. --- process.c | 24 +++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/process.c b/process.c index c5ef7d8..269a18b 100644 --- a

[PATCH 15/16] exec: keep track of the range where executable segments are mapped

2013-08-05 Thread Justus Winter
Keep track of the range where executable segments are mapped into memory and hand that information over to the proc server. * exec/priv.h (struct execdata): Add {start,end}_code. * exec/exec.c (prepare): Initialize {start,end}_code. (load_section): Update {start,end}_code. (do_exec): Use proc_set_

[PATCH 13/16] proc: keep track of {start,end}_code

2013-08-05 Thread Justus Winter
Any executable segments loaded from the ELF binary are in this range. * proc/proc.h (struct proc): Add {start,end}_code. * proc/mgt.h (S_proc_set_code): New function. * proc/mgt.h (S_proc_get_code): New function. --- proc/mgt.c | 39 +++ proc/proc.h |2 +

[PATCH 10/16] libtrivfs: register libtrivfs-based translators as important

2013-08-05 Thread Justus Winter
Register libtrivfs-based translators running as root as important processes at the proc server. * libtrivfs/startup.c (trivfs_startup): Mark us as important. --- libtrivfs/startup.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/libtrivfs/startup.c b/libtrivfs/startup.

[PATCH 09/16] libnetfs: register libnetfs-based translators as important

2013-08-05 Thread Justus Winter
Register libnetfs-based translators running as root as important processes at the proc server. * libnetfs/init-startup.c (netfs_startup): Mark us as important. --- libnetfs/init-startup.c | 13 + 1 file changed, 13 insertions(+) diff --git a/libnetfs/init-startup.c b/libnetfs/init-

[PATCH 07/16] init: Mark all of inits children and init itself as important

2013-08-05 Thread Justus Winter
This is based on a fragment of Guillem Jovers patch presented here: http://lists.gnu.org/archive/html/bug-hurd/2006-02/msg00081.html It has been refreshed, updated and the copyright year is adjusted properly. It has been complemented with the necessary features to address the issues the original

[PATCH 14/16] hurd: add proc_{get,set}_code

2013-08-05 Thread Justus Winter
Add routines to set and query the processes start_code and end_code locations. Any executable segments loaded from the ELF binary are in this range. * hurd/process.defs: Add proc_{get,set}_code. * hurd/process_reply.defs: Add proc_{get,set}_code. * hurd/process_request.defs: Add proc_{get,set}_cod

[PATCH 16/16] Build fixes: Build processUser.o and link against it

2013-08-05 Thread Justus Winter
The process interfaces got new routines, add processUser.o so that they get picked up by the servers that need them. As I understand it this is no longer necessary once the libc has been rebuilt with the new definitions. So this patch can either be omitted if the libc is rebuild first, or committe

[PATCH 12/16] trans: register symlink translators as important

2013-08-05 Thread Justus Winter
Register any symlink translators running as root as important processes at the proc server. * trans/symlink.c (main): Mark us as important. --- trans/symlink.c | 12 1 file changed, 12 insertions(+) diff --git a/trans/symlink.c b/trans/symlink.c index 03b5100..b3e8441 100644 --- a

[PATCH 11/16] mach-defpager: register mach-defpager translators as important

2013-08-05 Thread Justus Winter
Register any mach-defpager translators running as root as important processes at the proc server. * mach-defpager/main.c (main): Mark us as important. --- mach-defpager/main.c | 12 1 file changed, 12 insertions(+) diff --git a/mach-defpager/main.c b/mach-defpager/main.c index 313

[PATCH 03/16] Add proc_set_init_task, make runsystem pid 1

2013-08-05 Thread Justus Winter
* hurd/process.defs (proc_set_init_task): New procedure. * hurd/process_reply.defs (proc_set_init_task): Likewise. * hurd/process_request.defs (proc_set_init_task): Likewise. * include/pids.h: Add HURD_PID_INIT as 1, adjust others accordingly. * init/init.c (start_child): Register the child task. *

[PATCH 02/16] Define and use symbolic names for important processes

2013-08-05 Thread Justus Winter
* include/pids.h: New file. * init/init.c (frob_kernel_process): Use symbolic name for kernel process. * exec/main.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 06/16] hurd: add proc_mark_important

2013-08-05 Thread Justus Winter
This is based on a fragment of Guillem Jovers patch presented here: http://lists.gnu.org/archive/html/bug-hurd/2006-02/msg00081.html It has been refreshed, updated and the copyright year is adjusted properly. It has been complemented with the necessary features to address the issues the original

[PATCH 05/16] proc: add proc_mark_important server code

2013-08-05 Thread Justus Winter
This is based on a fragment of Guillem Jovers patch presented here: http://lists.gnu.org/archive/html/bug-hurd/2006-02/msg00081.html It has been refreshed, updated and the copyright year is adjusted properly. It has been complemented with the necessary features to address the issues the original

[PATCH 08/16] libdiskfs: register libdiskfs-based translators as important

2013-08-05 Thread Justus Winter
Register libdiskfs-based translators running as root as important processes at the proc server. * libdiskfs/init-startup.c (_diskfs_init_completed): Mark us as important. --- libdiskfs/init-startup.c |6 ++ 1 file changed, 6 insertions(+) diff --git a/libdiskfs/init-startup.c b/libdiskfs

[PATCH 01/16] hurd: add missing routines in process_reply.defs

2013-08-05 Thread Justus Winter
Add the appropriate simpleroutine or skip directives to hurd/process_reply.defs matching the ones in hurd/process.defs. * hurd/process_reply.defs: Add missing routine declarations. --- hurd/process_reply.defs | 114 +++ 1 file changed, 114 insertions(+

[PATCH 04/16] proc: make the function check_owner available

2013-08-05 Thread Justus Winter
Make the function check_owner available for use in other files. * proc/info.c (check_owner): Drop attributes static and inline. * proc/proc.h (check_owner): Add prototype. --- proc/info.c |2 +- proc/proc.h |1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/proc/info.c b/

Make sysvinit pid 1, fix killall5

2013-08-05 Thread Justus Winter
Hi, this is a unified patch series fixing all sysvinit related issues. [PATCH 01/16] hurd: add missing routines in process_reply.defs [PATCH 02/16] Define and use symbolic names for important processes These can be merged now. [PATCH 03/16] Add proc_set_init_task, make runsystem pid 1 This nee