search for: sigfillset

Displaying 20 results from an estimated 37 matches for "sigfillset".

2002 Apr 22
1
Re: [PATCH] open files in kjounald (2)
....c linux.ori/fs/jbd/journal.c --- linux.ori/fs/jbd/journal.c Mon Apr 22 06:28:54 2002 +++ linux/fs/jbd/journal.c Mon Apr 22 06:29:16 2002 @@ -204,7 +204,6 @@ lock_kernel(); daemonize(); + exit_files(current); spin_lock_irq(&current->sigmask_lock); sigfillset(&current->blocked); recalc_sigpending(current);
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.
2020 Mar 28
0
[klibc:update-dash] dash: eval: Add vfork support
...int dowait(int block, struct job *jp) STATIC int waitproc(int block, int *status) { - sigset_t mask, oldmask; + sigset_t oldmask; int flags = block == DOWAIT_BLOCK ? 0 : WNOHANG; int err; @@ -1119,8 +1166,7 @@ waitproc(int block, int *status) if (err || (err = -!block)) break; - sigfillset(&mask); - sigprocmask(SIG_SETMASK, &mask, &oldmask); + sigblockall(&oldmask); while (!gotsigchld && !pending_sig) sigsuspend(&oldmask); diff --git a/usr/dash/jobs.h b/usr/dash/jobs.h index 953ee871..6ac6c56d 100644 --- a/usr/dash/jobs.h +++ b/usr/dash/jobs.h @...
2004 Dec 28
1
OpenSSH 3.9p1 X11 forwarding
...= 2 19279: 9.5466 fcntl(4, F_SETFL, 0x00000082) = 0 19279: 9.5467 fcntl(5, F_GETFL, 0x00000000) = 2 19279: 9.5467 fcntl(5, F_SETFL, 0x00000082) = 0 19279: 9.5468 poll(0xFFBFF150, 2, -1) = 1 19279: 9.5469 sigfillset(0xFF042940) = 0 19279: 9.5469 sigprocmask(SIG_BLOCK, 0xFFBFF1E0, 0xFFBFF1F0) = 0 19279: 9.5470 sigprocmask(SIG_SETMASK, 0xFFBFF1F0, 0x00000000) = 0 19279: 9.5471 read(6, " k RD0 - v82190390D8D8 `".., 16384) = 64 19279: 9.5474 ioctl(-1, TCGETA, 0xFFBFEF...
2019 May 19
4
most robust way to call R API functions from a secondary thread
...hreads are created because this 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 ....
2008 Oct 09
0
"zfs set sharenfs" takes a long time to return.
...32.834 6008913 10239 execve .000 1 fcntl .000 18 openat .000 1 getppriv .000 1 getprivimplinfo .000 1 issetugid .000 4 sigaction .000 1 sigfillset .000 1 getcontext .000 1 setustack .000 1 mmap .000 74 munmap .000 29 xstat .003 43 19 getrlimit .000 1 memcntl .000 1...
2004 Sep 23
0
solaris 8 and ls -l problems
...ns a few lines that show its looking like its reading the usernames like the following (please note I cut out the usernames) read(3, " L K O S K I N E , F A U".., 10484) = 10484 alarm(0) = 0 sigaction(SIGALRM, 0xFFBEC898, 0xFFBEC948) = 0 sigfillset(0xFF3428C8) = 0 sigprocmask(SIG_BLOCK, 0xFFBEC938, 0xFFBEC928) = 0 alarm(1) = 0 Received signal #14, SIGALRM, in sigsuspend() [caught] sigsuspend(0xFFBEC918) Err#4 EINTR setcontext(0xFFBEC600) alarm(...
2005 Sep 08
1
Solaris NSS/winbind problem - large groups
Hello All, It seems that 'getent group groupname' hangs on large groups for Solaris 8/9 running winbind. Currently running Samba 3.0.20 but also tried 3.0.10. 'ls -l' also hangs if listing a file created by a user who's primary group is too large(such as Domain Users). Users can still access the files but netbackups hang. The problem I am experiencing is found in the
2015 Aug 21
0
Problem with psignal.c for Windows builds
...al_Number) int sigdelset(sigset_t* sigset_Info,int signal_Number) { if (IS_SIGNAL(signal_Number)) { - *sigset_Info &= ~(1<< (signal_Number - 1)); + *sigset_Info &= ~((sigset_t)1<< (signal_Number-1)); return 0; } else { @@ -295,7 +295,7 @@ int sigfillset(sigset_t* sigset_Info) int sigismember(sigset_t* sigset_Info,int signal_Number) { if (IS_SIGNAL(signal_Number)) { - if ( *sigset_Info & (1 << (signal_Number-1))) + if ( *sigset_Info & ((sigset_t)1 << (signal_Number-1))) return 1; else...
2019 Jan 25
0
[klibc:update-dash] trap: Globally rename pendingsigs to pending_sig
...a/usr/dash/jobs.c b/usr/dash/jobs.c index 5e080f6a..a2602bae 100644 --- a/usr/dash/jobs.c +++ b/usr/dash/jobs.c @@ -647,7 +647,7 @@ out: return retval; sigout: - retval = 128 + pendingsigs; + retval = 128 + pending_sig; goto out; } @@ -1146,7 +1146,7 @@ waitproc(int block, int *status) sigfillset(&mask); sigprocmask(SIG_SETMASK, &mask, &oldmask); - while (!gotsigchld && !pendingsigs) + while (!gotsigchld && !pending_sig) sigsuspend(&oldmask); sigclearmask(); diff --git a/usr/dash/miscbltin.c b/usr/dash/miscbltin.c index c47fdbf8..fc14dc4b 1006...
2020 Mar 28
0
[klibc:update-dash] dash: trap: Globally rename pendingsigs to pending_sig
...a/usr/dash/jobs.c b/usr/dash/jobs.c index c1f9688f..333a2a22 100644 --- a/usr/dash/jobs.c +++ b/usr/dash/jobs.c @@ -647,7 +647,7 @@ out: return retval; sigout: - retval = 128 + pendingsigs; + retval = 128 + pending_sig; goto out; } @@ -1146,7 +1146,7 @@ waitproc(int block, int *status) sigfillset(&mask); sigprocmask(SIG_SETMASK, &mask, &oldmask); - while (!gotsigchld && !pendingsigs) + while (!gotsigchld && !pending_sig) sigsuspend(&oldmask); sigclearmask(); diff --git a/usr/dash/miscbltin.c b/usr/dash/miscbltin.c index c47fdbf8..fc14dc4b 1006...
2002 Apr 22
3
[PATCH] open files in kjounald
....c linux.ori/fs/jbd/journal.c --- linux/fs/jbd/journal.c Mon Apr 22 06:29:16 2002 +++ linux.ori/fs/jbd/journal.c Mon Apr 22 06:28:54 2002 @@ -204,7 +204,6 @@ lock_kernel(); daemonize(); - exit_files(current); spin_lock_irq(&current->sigmask_lock); sigfillset(&current->blocked); recalc_sigpending(current);
2004 Sep 28
7
rsync 2.6.2 hang (was rsync 2.6.2 crash)
OK, I set up a new PC with a fresh XP load to be my rsync server. Rsync by itself seems to work fine (thank God. I'm going nuts.) I am still having problems when I throw ssh into the mix. At least now, things don't crash, but they do hang. The file list gets build, the transfer starts and it gets through maybe a few hundred files, but then everything stops. All the processes are still
2019 May 20
1
most robust way to call R API functions from a secondary thread
...ointer 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(;;)...
2007 Jan 05
0
troubles with telnet sessions under Solaris8 as AD member with winbind V3.0.23d
...F660, WEXITED|WTRAPPED) = 0 19083: brk(0x0003B118) = 0 19083: brk(0x0003AF18) = 0 ...skipping... 19083: Received signal #14, SIGALRM, in read() [caught] 19083: read(0, 0x000394E0, 128) Err#4 EINTR 19083: sigfillset(0xFF3428D0) = 0 19083: sigprocmask(SIG_UNBLOCK, 0xFFBEF738, 0x00000000) = 0 19083: sigaction(SIGALRM, 0xFFBEF618, 0xFFBEF698) = 0 19083: kill(19083, SIGALRM) = 0 19083: Received signal #14, SIGALRM [default] 19083: siginfo: SIG...
2019 May 20
0
[External] most robust way to call R API functions from a secondary thread
...t; * 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(;;) { > // ti...
2020 Mar 28
0
[klibc:update-dash] dash: jobs: Only clear gotsigchld when waiting for everything
...() { - gotsigchild = 1; -} -#endif - STATIC int waitproc(int block, int *status) @@ -1145,13 +1116,10 @@ waitproc(int block, int *status) #endif do { - gotsigchld = 0; err = wait3(status, flags, NULL); - if (err || !block) + if (err || (err = -!block)) break; - block = 0; - sigfillset(&mask); sigprocmask(SIG_SETMASK, &mask, &oldmask); @@ -1159,6 +1127,8 @@ waitproc(int block, int *status) sigsuspend(&oldmask); sigclearmask(); + + err = 0; } while (gotsigchld); return err;
2019 May 20
0
most robust way to call R API functions from a secondary thread
...location 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(;;)...
2019 Aug 03
0
[nbdkit PATCH 3/3] server: Add and use nbdkit_nanosleep
...) { + nbdkit_error ("sleep request is too long"); + errno = EINVAL; + return -1; + } + ts.tv_sec = sec + nsec / 1000000000; + ts.tv_nsec = nsec % 1000000000; + + /* Block all signals to this thread during the poll, so we don't + * have to worry about EINTR + */ + if (sigfillset(&all)) + abort (); + switch (ppoll (fds, 2, &ts, &all)) { + case -1: + assert (errno != EINTR); + nbdkit_error ("poll: %m"); + return -1; + case 0: + return 0; + } + + /* We don't have to read the pipe-to-self; if poll returned an + * event, we know t...
2006 Aug 01
9
DNS resolutions is not working in a Solaris 10 DomU
...|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xC6D50000 getcontext(0x080479F0) getrlimit(RLIMIT_STACK, 0x080479E8) = 0 getpid() = 103279 [103278] lwp_private(0, 1, 0xC6D52000) = 0x000001C3 setustack(0xC6D52060) sigfillset(0xC6E49578) = 0 sysi86(SI86FPSTART, 0xC6E49AEC, 0x0000133F, 0x00001F80) = 0x00000001 getuid() = 0 [0] getuid() = 0 [0] fstat64(1, 0x08047CF0) = 0 getpid()...