summaryrefslogtreecommitdiff
path: root/hurd/hurdinit.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1998-11-11 09:56:51 +0000
committerRoland McGrath <roland@gnu.org>1998-11-11 09:56:51 +0000
commit62495816a5df7632ef6cc6f0e6f09e135aa763a1 (patch)
tree15c2c1b07617600b9d1da5271928fe347be5abf5 /hurd/hurdinit.c
parent74eee8866db0c7e01216e6a73b9b19414a95b04b (diff)
1998-11-11 Roland McGrath <roland@baalperazim.frob.com>
* hurd/hurdsig.c (_hurdsig_init): Take new args, INTARRAY and INTARRAYSIZE. Initialize main thread's sigstate from INIT_SIG* ints. * hurd/hurd/signal.h: Update _hurdsig_init decl. * hurd/hurdinit.c (_hurd_proc_init): Take new args, INTARRAY and INTARRAYSIZE, pass them down to _hurdsig_init. * hurd/hurd.h: Update _hurd_proc_init decl.
Diffstat (limited to 'hurd/hurdinit.c')
-rw-r--r--hurd/hurdinit.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/hurd/hurdinit.c b/hurd/hurdinit.c
index 0d0f4b4ea9..cd0d6e529c 100644
--- a/hurd/hurdinit.c
+++ b/hurd/hurdinit.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1992, 93, 94, 95, 96, 97 Free Software Foundation, Inc.
+/* Copyright (C) 1992, 93, 94, 95, 96, 97, 98 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -42,8 +42,6 @@ _hurd_ports_use (int which, error_t (*operate) (mach_port_t))
return HURD_PORT_USE (&_hurd_ports[which], (*operate) (port));
}
-void _hurd_proc_init (char **argv);
-
DEFINE_HOOK (_hurd_subinit, (void));
/* Initialize the library data structures from the
@@ -84,7 +82,7 @@ _hurd_init (int flags, char **argv,
/* Tell the proc server we exist, if it does. */
if (portarray[INIT_PORT_PROC] != MACH_PORT_NULL)
- _hurd_proc_init (argv);
+ _hurd_proc_init (argv, intarray, intarraysize);
/* All done with init ints and ports. */
__vm_deallocate (__mach_task_self (),
@@ -120,14 +118,15 @@ DEFINE_HOOK (_hurd_proc_subinit, (void));
Call _hurdsig_init to set up signal processing. */
void
-_hurd_proc_init (char **argv)
+_hurd_proc_init (char **argv,
+ const int *intarray, size_t intarraysize)
{
mach_port_t oldmsg;
struct hurd_userlink ulink;
process_t procserver;
/* Initialize the signal code; Mach exceptions will become signals. */
- _hurdsig_init ();
+ _hurdsig_init (intarray, intarraysize);
/* The signal thread is now prepared to receive messages.
It is safe to give the port to the proc server. */