Displaying 20 results from an estimated 80 matches for "sigemptyset".
2013 Mar 10
1
libconf branch build failure: sigemptyset()
...nutipc.cpp
libtool: compile: clang++ -DHAVE_CONFIG_H -I. -I../include -I../include -g -O2 -MT nutipc.lo -MD -MP -MF .deps/nutipc.Tpo -c nutipc.cpp -fno-common -DPIC -o .libs/nutipc.o
In file included from nutipc.cpp:22:
../include/nutipc.hpp:646:5: error: expected unqualified-id
::sigemptyset(&action.sa_mask);
^
/usr/include/signal.h:127:26: note: expanded from macro 'sigemptyset'
#define sigemptyset(set) (*(set) = 0, 0)
^
sigemptyset() probably should have been implemented as an inline function, but that's what w...
2016 Mar 14
2
Broken build on musl libc
On 14 March 2016 at 09:02, Erik de Castro Lopo <mle+la at mega-nerd.com> wrote:
> commit a9f84425cfd5d1dbfb564730ca80d0b588cb4f24
> Author: Erik de Castro Lopo <erikd at mega-nerd.com>
> Date: Mon Mar 14 18:14:31 2016 +1100
>
> libFLAC/cpu.c: Use `sigemptyset` instead of `__sigemptyset`
>
> The former is POSIX while the later is a GNU glibc-ism that does not
> exist in (for example) the Musl C library that is used in OpenWrt.
>
> Reported-by: <neheb at hushmail.com>
>
> @lvqcl, I tried to test this, but...
2016 Mar 14
1
Broken build on musl libc
On 03/14/16 03:51 PM, lvqcl wrote:
> With --disable-sse, FLAC__SSE_OS is undefined and FLAC__cpu_info() uses
> sigemptyset/sigaction to determine OS SSE support.
That's not quite right as I have to build binaries with --disable-sse (I
build and distribute both with and without) so that some users on PII's
don't get a sigill, even though the OS supports SSE. So it seems to
unconditionally disable SSE sup...
2017 Jun 10
1
[PATCH] lib: direct, uml: Unblock SIGTERM in the hypervisor and recovery processes (RHBZ#1460338).
...e hotplugging you won't need to do this.
@@ -728,6 +729,13 @@ launch_direct (guestfs_h *g, void *datav, const char *arg)
close_file_descriptors (fd > 2);
}
+ /* Unblock the SIGTERM signal since we will need to send that to
+ * the subprocess (RHBZ#1460338).
+ */
+ sigemptyset (&sigset);
+ sigaddset (&sigset, SIGTERM);
+ sigprocmask (SIG_UNBLOCK, &sigset, NULL);
+
/* Dump the command line (after setting up stderr above). */
if (g->verbose)
qemuopts_to_channel (qopts, stderr);
@@ -781,6 +789,13 @@ launch_direct (guestfs_h *g, void *da...
2001 Feb 18
3
OpenSSH 2.5.0p1 vs. SA_RESTART
...oes not).
Also, for the non-SA_RESTART case in scp.c sa.sa_flags
was not being initialized (noted by dworkin at village.org).
- todd
--- scp.c.DIST Sat Feb 17 17:56:33 2001
+++ scp.c Sat Feb 17 17:57:59 2001
@@ -1224,8 +1224,9 @@
struct sigaction sa;
sa.sa_handler = updateprogressmeter;
sigemptyset((sigset_t *)&sa.sa_mask);
+ sa.sa_flags = 0;
#ifdef SA_RESTART
- sa.sa_flags = SA_RESTART;
+ sa.sa_flags |= SA_RESTART;
#endif
sigaction(SIGALRM, &sa, NULL);
alarmtimer(1);
--- misc.c.DIST Fri Feb 16 07:58:12 2001
+++ misc.c Sat Feb 17 17:59:53 2001
@@ -108,8 +108,10 @@
memset...
2016 Mar 08
1
[PATCH] fish: reset the console on ^Z RHBZ#1213844
Patch registers SIGTSTP hook where it sends reset terminal color
control sequence using write and fsync.
Handler is installed only if signal is not being ignored.
Patch uses rl_free_line_state and rl_cleanup_after_signal to unhook
readline from terminal, then it calls original TSTP handler using
approach in URL below and again hooks readline using
rl_reset_after_signal.
Handling is based on code
2015 Feb 12
0
Trouble building 4.2rc4 on FreeBSD
...^
../lib/texpect/texpect.c:430:12: note: forward declaration of 'struct
sigaction'
struct sigaction sa;
^
../lib/texpect/texpect.c:434:5: error: implicit declaration of function
'sigemptyset' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
sigemptyset (&sa.sa_mask);
^
../lib/texpect/texpect.c:436:5: error: implicit declaration of function
'sigaction' is invalid in C99
[-Werror,-...
2015 Feb 12
0
Trouble building 4.2rc4 on FreeBSD
...^
> ../lib/texpect/texpect.c:430:12: note: forward declaration of 'struct
> sigaction'
> struct sigaction sa;
> ^
> ../lib/texpect/texpect.c:434:5: error: implicit declaration of function
> 'sigemptyset' is invalid in C99
> [-Werror,-Wimplicit-function-declaration]
> sigemptyset (&sa.sa_mask);
> ^
> ../lib/texpect/texpect.c:436:5: error: implicit declaration of function
> 'sigaction' is invalid...
2016 Mar 09
2
Broken build on musl libc
Patch is here: https://github.com/openwrt/packages/commit/1263599f96f13f11d719ce336dfb6a639b32de98 . Probably needs to be modified for inclusion into mainline.
2009 Dec 16
2
Build fix on HURD
I've made two little patches to allow dovecot to be compiled on GNU/Hurd.
Could you review them?
Kind regards,
Marco Nenciarini
--
---------------------------------------------------------------------
| Marco Nenciarini | Debian/GNU Linux Developer - Plug Member |
| mnencia at prato.linux.it | http://www.prato.linux.it/~mnencia |
2016 Feb 16
2
[PATCH] fish: reset the console on ^Z RHBZ#1213844
Patch registers SIGTSTP hook where it sends reset terminal color control
sequence.
Maros Zatko (1):
fish: reset the console on ^Z RHBZ#1213844
fish/fish.c | 72 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 72 insertions(+)
--
2.5.0
2007 Aug 16
0
[PATCH/RFC 2/4]Introduce a new field "guest" in task_struct
...cmaj_flt =3D 0;
unsigned long min_flt =3D 0, maj_flt =3D 0;
- cputime_t cutime, cstime;
- clock_t utime, stime;
+ cputime_t cutime, cstime, cgtime;
+ clock_t utime, stime, gtime;
unsigned long rsslim =3D 0;
char tcomm[sizeof(task->comm)];
unsigned long flags;
@@ -387,8 +394,8 @@
=
sigemptyset(&sigign);
sigemptyset(&sigcatch);
- cutime =3D cstime =3D cputime_zero;
- utime =3D stime =3D 0;
+ cutime =3D cstime =3D cgtime =3D cputime_zero;
+ utime =3D stime =3D gtime =3D 0;
=
rcu_read_lock();
if (lock_task_sighand(task, &flags)) {
@@ -406,6 +413,7 @@
cmaj_flt =3D sig-...
2007 Aug 16
0
[PATCH/RFC 2/4]Introduce a new field "guest" in task_struct
...cmaj_flt =3D 0;
unsigned long min_flt =3D 0, maj_flt =3D 0;
- cputime_t cutime, cstime;
- clock_t utime, stime;
+ cputime_t cutime, cstime, cgtime;
+ clock_t utime, stime, gtime;
unsigned long rsslim =3D 0;
char tcomm[sizeof(task->comm)];
unsigned long flags;
@@ -387,8 +394,8 @@
=
sigemptyset(&sigign);
sigemptyset(&sigcatch);
- cutime =3D cstime =3D cputime_zero;
- utime =3D stime =3D 0;
+ cutime =3D cstime =3D cgtime =3D cputime_zero;
+ utime =3D stime =3D gtime =3D 0;
=
rcu_read_lock();
if (lock_task_sighand(task, &flags)) {
@@ -406,6 +413,7 @@
cmaj_flt =3D sig-...
2001 Jun 05
5
HPUX: ssh hangs after shell exit
I am aware that there have been several posts related to ssh connections
hanging, i have tried to read through most of them in the archives... I
am posting this in hopes that it may present something new that will
further help resolve this problem.
The problem i am having appears to be similar to what others have
reported where after typing exit in an interactive shell the connection
is not
2013 Apr 16
2
An error occurred while installing jk-ferret (0.11.8.3), and Bundler cannot continue.
...4: note: each undeclared identifier is reported only once for
each
function it appears in
global.c: In function ''frt_init'':
global.c:436:22: error: storage size of ''action'' isn''t known
global.c:443:5: warning: implicit declaration of function ''sigemptyset''
global.c:446:5: error: storage size of ''__old'' isn''t known
global.c:446:5: warning: implicit declaration of function ''sigaction''
global.c:446:5: warning: unused variable ''__old''
global.c:447:5: error: storage size of ''...
2009 May 14
0
[LLVMdev] Grouping related functions in a code section
...n the linker-script-defined __syscall_stub_start symbol. Then we
have:
unsigned long v = STUB_CODE +
(unsigned long) stub_segv_handler - // a function stored in this page
(unsigned long) &__syscall_stub_start; // from linker script
set_sigstack((void *) STUB_DATA, UM_KERN_PAGE_SIZE);
sigemptyset(&sa.sa_mask);
sa.sa_flags = SA_ONSTACK | SA_NODEFER;
sa.sa_handler = (void *) v; // Use this function.
The stub_segv_handler function is defined with:
void __attribute__ ((__section__ (".__syscall_stub")))
stub_segv_handler(int sig) {...}
I don't actually quite understand the r...
2020 Mar 28
0
[klibc:update-dash] dash: system: Disable glibc warning on sigsetmask
...(defined(__GNUC__) && (__GNUC__ * 1000 + __GNUC_MINOR__) >= 4006))
+#ifdef __GLIBC__
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+#endif
sigsetmask(0);
+#ifdef __GLIBC__
+#pragma GCC diagnostic pop
+#endif
#else
sigset_t set;
sigemptyset(&set);
2020 Aug 28
0
[klibc:ia64-signal-fix] ia64: sigaction: Make signal updates atomic
...action *act,
struct sigaction *oact, size_t size)
{
+ sigset_t signal_mask, old_signal_mask;
uintptr_t old_entry;
int rv;
@@ -29,6 +30,13 @@ int __rt_sigaction(int sig, const struct sigaction *act,
return -1;
}
+ /* Mask the signal to avoid races on access to its descriptor */
+ sigemptyset(&signal_mask);
+ sigaddset(&signal_mask, sig);
+ rv = sigprocmask(SIG_BLOCK, &signal_mask, &old_signal_mask);
+ if (rv)
+ return -1;
+
if (oact) {
old_entry = signal_descriptors[sig].entry;
}
@@ -41,6 +49,12 @@ int __rt_sigaction(int sig, const struct sigaction *act,
rv...
2020 Aug 29
0
[klibc:master] ia64: sigaction: Make signal updates atomic
...ct sigaction *act,
struct sigaction *oact, size_t size)
{
+ sigset_t signal_mask, old_signal_mask;
uintptr_t old_entry;
int rv;
@@ -29,6 +30,13 @@ int __rt_sigaction(int sig, struct sigaction *act,
return -1;
}
+ /* Mask the signal to avoid races on access to its descriptor */
+ sigemptyset(&signal_mask);
+ sigaddset(&signal_mask, sig);
+ rv = sigprocmask(SIG_BLOCK, &signal_mask, &old_signal_mask);
+ if (rv)
+ return -1;
+
if (oact) {
old_entry = signal_descriptors[sig].entry;
}
@@ -41,6 +49,12 @@ int __rt_sigaction(int sig, struct sigaction *act,
rv = ____...
2016 Feb 16
0
[PATCH] fish: reset the console on ^Z RHBZ#1213844
...t oset, set;
+
+#ifdef HAVE_LIBREADLINE
+ /* Cleanup readline, unhook from terminal */
+ rl_free_line_state ();
+ rl_cleanup_after_signal ();
+#endif
+
+ /* Reset terminal color */
+#define RESETCOLOR "\033[0m"
+ printf (RESETCOLOR);
+ fflush (stdout);
+
+ /* Unblock SIGTSTP. */
+ sigemptyset (&set);
+ sigaddset (&set, SIGTSTP);
+ sigprocmask (SIG_UNBLOCK, &set, NULL);
+
+ restore_stophandler ();
+
+ /* Stop ourselves. */
+ kill (0, SIGTSTP);
+
+ /* Now we're stopped ... */
+
+ /* Reset the curses SIGTSTP signal handler. */
+ set_stophandler ();
+
+#ifdef HAVE_LI...