Commit e040e6c4 authored by Alexandre Julliard's avatar Alexandre Julliard

libwine: Added entry for sigprocmask in the pthread functions table.

parent c6ad0201
......@@ -159,7 +159,7 @@ void server_exit_thread( int status )
NtFreeVirtualMemory( GetCurrentProcess(), &info.teb_base, &size, MEM_RELEASE | MEM_SYSTEM );
info.teb_size = size;
sigprocmask( SIG_BLOCK, &block_set, NULL );
pthread_functions.sigprocmask( SIG_BLOCK, &block_set, NULL );
close( ntdll_get_thread_data()->wait_fd[0] );
close( ntdll_get_thread_data()->wait_fd[1] );
close( ntdll_get_thread_data()->reply_fd );
......@@ -173,7 +173,7 @@ void server_exit_thread( int status )
*/
void server_abort_thread( int status )
{
sigprocmask( SIG_BLOCK, &block_set, NULL );
pthread_functions.sigprocmask( SIG_BLOCK, &block_set, NULL );
close( ntdll_get_thread_data()->wait_fd[0] );
close( ntdll_get_thread_data()->wait_fd[1] );
close( ntdll_get_thread_data()->reply_fd );
......@@ -312,10 +312,10 @@ unsigned int wine_server_call( void *req_ptr )
struct __server_request_info * const req = req_ptr;
sigset_t old_set;
sigprocmask( SIG_BLOCK, &block_set, &old_set );
pthread_functions.sigprocmask( SIG_BLOCK, &block_set, &old_set );
send_request( req );
wait_reply( req );
sigprocmask( SIG_SETMASK, &old_set, NULL );
pthread_functions.sigprocmask( SIG_SETMASK, &old_set, NULL );
return req->u.reply.reply_header.error;
}
......
......@@ -23,6 +23,8 @@
struct wine_pthread_callbacks;
#include <signal.h>
#ifdef HAVE_PTHREAD_H
#define _GNU_SOURCE
......@@ -99,6 +101,7 @@ struct wine_pthread_functions
void (*exit_thread)( struct wine_pthread_thread_info *info );
void (*abort_thread)( long status );
#endif
int (*sigprocmask)( int how, const sigset_t *newset, sigset_t *oldset );
};
extern void wine_pthread_get_functions( struct wine_pthread_functions *functions, size_t size );
......
......@@ -397,7 +397,8 @@ const struct wine_pthread_functions pthread_functions =
init_current_teb,
get_current_teb,
exit_thread,
abort_thread
abort_thread,
sigprocmask
};
......
......@@ -184,7 +184,8 @@ const struct wine_pthread_functions pthread_functions =
init_current_teb,
get_current_teb,
exit_thread,
abort_thread
abort_thread,
pthread_sigmask
};
#endif /* HAVE_PTHREAD_H */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment