mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-01-20 11:32:35 -08:00
Fixed wrong initialization error in process.d
This commit is contained in:
parent
748eb30ebe
commit
8810352ceb
1 changed files with 2 additions and 2 deletions
|
|
@ -497,9 +497,9 @@ mp_process_enable(cl_object process)
|
|||
*/
|
||||
#ifdef HAVE_SIGPROCMASK
|
||||
{
|
||||
sigset_t previous, new = process_env->default_sigmask;
|
||||
sigset_t previous, new = *((sigset_t*)process_env->default_sigmask);
|
||||
sigaddset(&new, ecl_option_values[ECL_OPT_THREAD_INTERRUPT_SIGNAL]);
|
||||
pthread_sigmask(SIG_SETMASK, new, &previous);
|
||||
pthread_sigmask(SIG_SETMASK, &new, &previous);
|
||||
code = pthread_create(&process->process.thread, &pthreadattr,
|
||||
thread_entry_point, process);
|
||||
pthread_sigmask(SIG_SETMASK, &previous, NULL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue