Displaying 20 results from an estimated 37 matches for "pthread_sigmask".
2012 Jun 06
3
[PATCH 0 of 2 V3] xs: fixes to watch thread creation
A pair of patches to the xenstore library that:
1) blocks signal delivery before creating the watch wakeup thread
2) reduces the stack size of the watch wakeup thread.
2019 May 19
4
most robust way to call R API functions from a secondary thread
...s might
* fail in allocation or with pointer protection stack overflow
*/
SEXP cont = PROTECT(R_MakeUnwindCont());
/* block all signals:
*
* do this before the threads are created such that they inherit the mask
*/
sigset_t block_set, prev_mask;
sigfillset(&block_set);
pthread_sigmask(SIG_SETMASK, &block_set, &prev_mask);
// suspend interrupts:
Rboolean __oldsusp__ = R_interrupts_suspended;
R_interrupts_suspended = TRUE;
// create threads running threaded_fun() ...
for(;;) {
// timed blocking check if threads are done ...
// unblock signals, check f...
2002 Jan 02
2
macosx (lots of little changes)
...[
- AC_MSG_ERROR([could not find dlopen() needed by libao sound
drivers
- your system may not be supported.])
+# AC_MSG_ERROR([could not find dlopen() needed by libao sound
drivers
+# your system may not be supported.])
])
])
<p>macosx doesn't seem to have pthread_sigmask(). this is not a perfect
solution, I can't ^C out of ogg123.
--- ogg123/buffer.c.orig Wed Jan 2 01:21:20 2002
+++ ogg123/buffer.c Tue Jan 1 16:15:31 2002
@@ -75,7 +75,11 @@
sigaddset(&set, SIGINT);
sigaddset(&set, SIGTSTP);
sigaddset(&set, SIGCONT);
+#ifdef...
2002 Jan 02
2
macosx (lots of little changes)
...[
- AC_MSG_ERROR([could not find dlopen() needed by libao sound
drivers
- your system may not be supported.])
+# AC_MSG_ERROR([could not find dlopen() needed by libao sound
drivers
+# your system may not be supported.])
])
])
<p>macosx doesn't seem to have pthread_sigmask(). this is not a perfect
solution, I can't ^C out of ogg123.
--- ogg123/buffer.c.orig Wed Jan 2 01:21:20 2002
+++ ogg123/buffer.c Tue Jan 1 16:15:31 2002
@@ -75,7 +75,11 @@
sigaddset(&set, SIGINT);
sigaddset(&set, SIGTSTP);
sigaddset(&set, SIGCONT);
+#ifdef...
2019 May 20
1
most robust way to call R API functions from a secondary thread
...t; */
>> SEXP cont = PROTECT(R_MakeUnwindCont());
>> /* block all signals:
>> *
>> * do this before the threads are created such that they inherit the mask
>> */
>> sigset_t block_set, prev_mask;
>> sigfillset(&block_set);
>> pthread_sigmask(SIG_SETMASK, &block_set, &prev_mask);
>> // suspend interrupts:
>> Rboolean __oldsusp__ = R_interrupts_suspended;
>> R_interrupts_suspended = TRUE;
>> // create threads running threaded_fun() ...
>> for(;;) {
>> // timed blocking check if th...
2019 Jun 18
0
[nbdkit PATCH] Experiment: nbd: Use ppoll() instead of pipe-to-self
...ssed exactly one socket description. */
+/* Finalize the configuration. */
static int
nbdplug_config_complete (void)
{
+ struct sigaction act = {
+ .sa_handler = nbdplug_sigusr1,
+ .sa_flags = SA_RESTART,
+ };
+
+ /* Register a no-op SIGUSR1 handler for use with ppoll */
+ if ((errno = pthread_sigmask (SIG_SETMASK, NULL, &origmask))) {
+ nbdkit_error ("pthread_sigmask: %m");
+ return -1;
+ }
+ if (sigismember (&origmask, SIGUSR1)) {
+ nbdkit_error ("SIGUSR1 should not be blocked");
+ return -1;
+ }
+ if (sigaction (SIGUSR1, &act, NULL) == -1) {
+...
2004 Aug 06
1
ices 0.2.2 and Mac OS X 10.1?
...clude/libxml2 -g -O2 -Wall -c thread.c
In file included from thread.c:40:
thread.h:48: conflicting types for `thread_t'
/usr/include/mach/mach_types.h:98: previous declaration of `thread_t'
thread.c: In function `_block_signals':
thread.c:184: warning: implicit declaration of function `pthread_sigmask'
thread.c: At top level:
thread.c:70: warning: `_next_mutex_id' defined but not used
make[2]: *** [thread.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive-am] Error 2
I dug in and renamed thread_t in the ices code, and added:
#define pthread_sigmask(A,B,C) sigprocm...
2019 May 20
0
[External] most robust way to call R API functions from a secondary thread
...pointer protection stack overflow
> */
> SEXP cont = PROTECT(R_MakeUnwindCont());
>
> /* block all signals:
> *
> * do this before the threads are created such that they inherit the mask
> */
> sigset_t block_set, prev_mask;
> sigfillset(&block_set);
> pthread_sigmask(SIG_SETMASK, &block_set, &prev_mask);
>
> // suspend interrupts:
> Rboolean __oldsusp__ = R_interrupts_suspended;
> R_interrupts_suspended = TRUE;
>
> // create threads running threaded_fun() ...
>
> for(;;) {
> // timed blocking check if threads are done...
2019 May 20
0
most robust way to call R API functions from a secondary thread
...stack overflow
> */
> SEXP cont = PROTECT(R_MakeUnwindCont());
>
> /* block all signals:
> *
> * do this before the threads are created such that they inherit the mask
> */
> sigset_t block_set, prev_mask;
> sigfillset(&block_set);
> pthread_sigmask(SIG_SETMASK, &block_set, &prev_mask);
>
> // suspend interrupts:
> Rboolean __oldsusp__ = R_interrupts_suspended;
> R_interrupts_suspended = TRUE;
>
> // create threads running threaded_fun() ...
>
> for(;;) {
> // timed blocking check if th...
2014 Apr 14
0
FreeBSD + Samba41 problems
...96(log_stack_trace)
BACKTRACE: 4 stack frames:
#0 0x8029500ed <smb_panic_s3+45> at /usr/local/lib/libsmbconf.so.0
#1 0x80146282c <smb_panic+60> at /usr/local/lib/libsamba-util.so.0
#2 0x801462a41 <smb_panic+593> at /usr/local/lib/libsamba-util.so.0
#3 0x803faa1a6 <pthread_sigmask+918> at /lib/libthr.so.3
[2014/04/14 09:05:32.749917, 0] ../source3/lib/dumpcore.c:312(dump_core)
unable to change to %N.core
refusing to dump core
[2014/04/14 09:06:32.825506, 0] ../source3/smbd/open.c:1582(defer_open_done)
PANIC: assert failed at ../source3/smbd/open.c(1582): ret
[2014...
2014 Feb 12
0
locking smbd
...lib/libsmbconf.so.0
Feb 12 10:37:56 mercury smbd[5960]: ? ?#1 0x81462a3c <smb_panic+44> at /usr/local/lib/libsamba-util.so.0
Feb 12 10:37:56 mercury smbd[5960]: ? ?#2 0x81462c51 <smb_panic+577> at /usr/local/lib/libsamba-util.so.0
Feb 12 10:37:56 mercury smbd[5960]: ? ?#3 0x83f8e349 <pthread_sigmask+889> at /lib/libthr.so.3
Feb 12 10:37:56 mercury smbd[5960]: ? ?#4 0x83f8e579 <pthread_sigmask+1449> at /lib/libthr.so.3
Feb 12 10:37:56 mercury smbd[5960]: ? ?#5 0x7ffffffff003
Feb 12 10:37:56 mercury smbd[5960]: ? ?#6 0x83d7c354 <talloc_named_const+116> at /usr/local/lib/libtalloc....
2020 Mar 30
2
"configure: error: Unable to find <rpc/rpc.h>" when compiling libvirt 6.0.0 from a release tarball
...p undefined symbols at link time... -Wl,-z -Wl,defs
checking sys/acl.h usability... no
checking sys/acl.h presence... no
checking for sys/acl.h... no
checking for aa_change_profile in -lapparmor... no
checking for pthread_mutexattr_init... yes
checking for pthread.h... (cached) yes
checking whether pthread_sigmask does anything... yes
checking for atomic ops implementation... gcc
checking for getxattr in -lattr... no
checking for audit_encode_nv_string in -laudit... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking whether rl_completion_quote_char...
2020 Mar 30
0
Re: "configure: error: Unable to find <rpc/rpc.h>" when compiling libvirt 6.0.0 from a release tarball
...-Wl,-z -Wl,defs
> checking sys/acl.h usability... no
> checking sys/acl.h presence... no
> checking for sys/acl.h... no
> checking for aa_change_profile in -lapparmor... no
> checking for pthread_mutexattr_init... yes
> checking for pthread.h... (cached) yes
> checking whether pthread_sigmask does anything... yes
> checking for atomic ops implementation... gcc
> checking for getxattr in -lattr... no
> checking for audit_encode_nv_string in -laudit... no
> checking for pkg-config... /usr/bin/pkg-config
> checking pkg-config is at least version 0.9.0... yes
> checking wh...
2003 Nov 16
3
asterisk installation error
...;:
/usr/src/asterisk/asterisk.c:307: undefined reference
to `pthread_create'
asterisk.o: In function `console_verboser':
/usr/src/asterisk/asterisk.c:559: undefined reference
to `pthread_kill'
asterisk.o: In function `main':
/usr/src/asterisk/asterisk.c:1372: undefined reference
to `pthread_sigmask'
/usr/src/asterisk/asterisk.c:1435: undefined reference
to `pthread_sigmask'
dsp.o: In function `ast_dtmf_detect_init':
/usr/src/asterisk/dsp.c:213: undefined reference to
`cos'
/usr/src/asterisk/dsp.c:213: undefined reference to
`cos'
/usr/src/asterisk/dsp.c:213: undefined refe...
2019 Jul 21
2
Missing hivex.h error when compiling on macOS 10.14 (Mojave)
...for strerror_r... yes
checking for __xpg_strerror_r... no
checking for strndup... yes
checking for vasnprintf... no
checking for snprintf... yes
checking for ftruncate... yes
checking for gettimeofday... yes
checking for isblank... yes
checking for lstat... yes
checking for pipe... yes
checking for pthread_sigmask... yes
checking for setenv... yes
checking for sigaction... yes
checking for sigaltstack... yes
checking for siginterrupt... yes
checking for sleep... yes
checking for catgets... yes
checking for shutdown... yes
checking for usleep... yes
checking for sys/socket.h... yes
checking for unistd.h... (c...
2009 Nov 17
0
Bug#556695: FTBFS with binutils-gold
.../xenstore -I../../tools/include -I.. -I../lib -I. -D_GNU_SOURCE -o fs-backend fs-xenbus.o fs-ops.o -L. -L.. -L../lib -L../../tools/libxc -lxenctrl -L../../tools/xenstore -lxenstore -lrt fs-backend.c
/usr/bin/ld: /tmp/ccyhtSwn.o: in function main:fs-backend.c:392: error: undefined reference to 'pthread_sigmask'
collect2: ld returned 1 exit status
make[5]: *** [fs-backend] Error 1
2008 Jan 23
1
FreeBSD 6.3-Release + squid 2.6.17 = Hang process.
...99.33-MHz 686-class CPU)
real memory = 3221159936 (3071 MB)
top:
PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND
8674 squid 1 121 0 105M 100M CPU3 1 0:26 98.54% squid
truss: (no response)
_xx@xxxx_[root]:~#truss -p 8674
gdb:
(gdb) bt
#0 0x881679eb in pthread_sigmask () from /lib/libpthread.so.2
#1 0x8816799c in sigprocmask () from /lib/libpthread.so.2
#2 0x88172544 in pthread_mutexattr_init () from /lib/libpthread.so.2
#3 0x88164680 in fork () from /lib/libpthread.so.2
#4 0x08091091 in ?? ()
#5 0x00000012 in ?? ()
#6 0x00000004 in ?? ()
#7 0x080e6edb in...
2019 Sep 18
2
[PATCH] build: remove unused gnulib modules
...b-ld.m4
/lib-link.m4
@@ -125,7 +101,6 @@
/locale-zh.m4
/localtime-buffer.m4
/lock.m4
-/longdouble.m4
/longlong.m4
/lseek.m4
/lstat.m4
@@ -143,7 +118,6 @@
/memmem.m4
/mempcpy.m4
/memrchr.m4
-/mgetgroups.m4
/minmax.m4
/mkdir.m4
/mkdtemp.m4
@@ -175,7 +149,6 @@
/pthread_rwlock_rdlock.m4
/pthread_sigmask.m4
/pthread-thread.m4
-/ptsname_r.m4
/putenv.m4
/quotearg.m4
/quote.m4
@@ -194,7 +167,6 @@
/save-cwd.m4
/sched_h.m4
/select.m4
-/servent.m4
/setenv.m4
/setlocale.m4
/sh-filename.m4
@@ -202,7 +174,6 @@
/sig_atomic_t.m4
/signalblocking.m4
/signal_h.m4
-/signed.m4
/size_max.m4
/sleep.m4...
2014 Oct 05
1
FreeBSD 10-RELEASE-amd64(on arch x86_64)
...CC sys_socket.lo
CC tempname.lo
CC glthread/threadlib.lo
CC unistd.lo
CC wctype-h.lo
CC xsize.lo
CC asnprintf.lo
CC canonicalize-lgpl.lo
CC fclose.lo
CC fdatasync.lo
CC fflush.lo
CC fseek.lo
CC fseeko.lo
CC getgroups.lo
CC ioctl.lo
CC mktime.lo
CC openpty.lo
CC printf-args.lo
CC printf-parse.lo
CC pthread_sigmask.lo
CC random_r.lo
CC rawmemchr.lo
CC regex.lo
In file included from regex.c:70:
./regex_internal.c:1392:11: warning: comparison of unsigned
expression < 0 is always false [-Wtautological-compare]
if (idx < 0 || idx >= set->nelem)
~~~ ^ ~
1 warning generated.
CC secure_getenv.lo
CC timeg...
2019 Sep 18
0
Re: [PATCH] build: remove unused gnulib modules
...gt; /lock.m4
> -/longdouble.m4
> /longlong.m4
> /lseek.m4
> /lstat.m4
> @@ -143,7 +118,6 @@
> /memmem.m4
> /mempcpy.m4
> /memrchr.m4
> -/mgetgroups.m4
> /minmax.m4
> /mkdir.m4
> /mkdtemp.m4
> @@ -175,7 +149,6 @@
> /pthread_rwlock_rdlock.m4
> /pthread_sigmask.m4
> /pthread-thread.m4
> -/ptsname_r.m4
> /putenv.m4
> /quotearg.m4
> /quote.m4
> @@ -194,7 +167,6 @@
> /save-cwd.m4
> /sched_h.m4
> /select.m4
> -/servent.m4
> /setenv.m4
> /setlocale.m4
> /sh-filename.m4
> @@ -202,7 +174,6 @@
> /sig_atomic_...