Changeset 315 for trunk/src/sh_pthread.c


Ignore:
Timestamp:
Mar 11, 2011, 8:30:55 PM (14 years ago)
Author:
katerina
Message:

Fix for ticket #236 (blocking on NFS mounts).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_pthread.c

    r259 r315  
    1515SH_MUTEX_INIT(mutex_readdir,      PTHREAD_MUTEX_INITIALIZER);
    1616SH_MUTEX_INIT(mutex_thread_nolog, PTHREAD_MUTEX_INITIALIZER);
     17
     18int sh_pthread_setsigmask(int how, const void *set, void *oldset)
     19{
     20  return pthread_sigmask(how, (const sigset_t *)set, (sigset_t *)oldset);
     21}
    1722
    1823void sh_pthread_mutex_unlock (void *arg)
     
    288293#endif
    289294
     295#else
     296
     297#include <signal.h>
     298
     299int sh_pthread_setsigmask(int how, const void *set, void *oldset)
     300{
     301  return sigprocmask(how, (const sigset_t *)set, (sigset_t *)oldset);
     302}
     303
    290304
    291305#endif
Note: See TracChangeset for help on using the changeset viewer.