X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fsignals.c;h=f31bc528c45893bfaab881434605cdc11e7c7fec;hb=f40869bdf6feca4d3ff7c59a1fb1f7ac101bc967;hp=06c2e75dfdf6958d1b674d028b9a7fdcb9da9464;hpb=d1673b006d53fdea72c0744e835362ed1917f879;p=sliver-openvswitch.git diff --git a/lib/signals.c b/lib/signals.c index 06c2e75df..f31bc528c 100644 --- a/lib/signals.c +++ b/lib/signals.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2009, 2011, 2012 Nicira, Inc. + * Copyright (c) 2008, 2009, 2011, 2012, 2013 Nicira, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -168,9 +168,10 @@ xsigaction(int signum, const struct sigaction *new, struct sigaction *old) } void -xsigprocmask(int how, const sigset_t *new, sigset_t *old) +xpthread_sigmask(int how, const sigset_t *new, sigset_t *old) { - if (sigprocmask(how, new, old)) { - VLOG_FATAL("sigprocmask failed (%s)", strerror(errno)); + int error = pthread_sigmask(how, new, old); + if (error) { + VLOG_FATAL("pthread_sigmask failed (%s)", strerror(error)); } }