2001-07-11 Igor Khavkine <i_khavki@alcor.concordia.ca>
authorRoland McGrath <roland@gnu.org>
Wed, 11 Jul 2001 21:15:50 +0000 (21:15 +0000)
committerRoland McGrath <roland@gnu.org>
Wed, 11 Jul 2001 21:15:50 +0000 (21:15 +0000)
        * hurd/hurdsig.c (_hurdsig_init): Remove a useless line of code.
2001-07-07  Roland McGrath  <roland@frob.com>

* hurd/hurdsig.c (_hurd_thread_sigstate): Use MACH_PORT_NULL, not 0.

hurd/hurdsig.c

index deeeaf9..b6851d8 100644 (file)
@@ -91,7 +91,7 @@ _hurd_thread_sigstate (thread_t thread)
       __sigemptyset (&ss->pending);
       memset (&ss->sigaltstack, 0, sizeof (ss->sigaltstack));
       ss->preemptors = NULL;
-      ss->suspended = 0;
+      ss->suspended = MACH_PORT_NULL;
       ss->intr_port = MACH_PORT_NULL;
       ss->context = NULL;
 
@@ -1243,7 +1243,6 @@ _hurdsig_init (const int *intarray, size_t intarraysize)
       err = __thread_create (__mach_task_self (), &_hurd_msgport_thread);
       assert_perror (err);
 
-      stacksize = ~__hurd_threadvar_stack_mask + 1;
       stacksize = __vm_page_size * 8; /* Small stack for signal thread.  */
       err = __mach_setup_thread (__mach_task_self (), _hurd_msgport_thread,
                                 _hurd_msgport_receive,