search for: sa_handler

Displaying 20 results from an estimated 168 matches for "sa_handler".

2019 Feb 02
2
[PATCH 1/2] ia64: Fix invalid memory access in vfork
Commit 8418552 ("[klibc] ia64: Fix shared build") missed this use of the GP register, although the code appears to have been dubious anyway, assuming the address of errno was the first thing pointed to by GP. --- usr/klibc/arch/ia64/vfork.S | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/usr/klibc/arch/ia64/vfork.S b/usr/klibc/arch/ia64/vfork.S index
2019 Feb 02
0
[PATCH 2/2] ia64: Fix sigaction struct layout and function implementation
...ns(+), 2 deletions(-) diff --git a/usr/include/arch/ia64/klibc/archsignal.h b/usr/include/arch/ia64/klibc/archsignal.h index fbc961b..c52c41a 100644 --- a/usr/include/arch/ia64/klibc/archsignal.h +++ b/usr/include/arch/ia64/klibc/archsignal.h @@ -22,8 +22,9 @@ struct sigaction { __sighandler_t _sa_handler; void (*_sa_sigaction) (int, struct siginfo *, void *); } _u; - sigset_t sa_mask; int sa_flags; + int __pad0; + sigset_t sa_mask; }; #define sa_handler _u._sa_handler diff --git a/usr/klibc/sigaction.c b/usr/klibc/sigaction.c index 19a8a54..e4901ab 100644 --- a/usr/klibc/sigaction.c...
2020 Aug 29
0
[klibc:master] ia64: Fix sigaction function implementation
..._rt_sigaction(int sig, struct sigaction *act, + struct sigaction *oact, size_t size) +{ + uintptr_t old_entry; + int rv; + + if (sig < 0 || sig >= _NSIG) { + errno = EINVAL; + return -1; + } + + if (oact) { + old_entry = signal_descriptors[sig].entry; + } + + if (act && act->sa_handler != SIG_IGN && act->sa_handler != SIG_DFL) { + signal_descriptors[sig].entry = (uintptr_t)act->sa_handler; + act->sa_handler = + (__sighandler_t)(uintptr_t)&signal_descriptors[sig]; + } + + rv = ____rt_sigaction(sig, act, oact, size); + + if (oact && oact->sa_hand...
2020 Aug 28
0
[klibc:ia64-signal-fix] ia64: Fix sigaction struct layout and function implementation
...gaction(int sig, const struct sigaction *act, + struct sigaction *oact, size_t size) +{ + uintptr_t old_entry; + int rv; + + if (sig < 0 || sig >= _NSIG) { + errno = EINVAL; + return -1; + } + + if (oact) { + old_entry = signal_descriptors[sig].entry; + } + + if (act && act->sa_handler != SIG_IGN && act->sa_handler != SIG_DFL) { + signal_descriptors[sig].entry = (uintptr_t)act->sa_handler; + act->sa_handler = + (__sighandler_t)(uintptr_t)&signal_descriptors[sig]; + } + + rv = ____rt_sigaction(sig, act, oact, size); + + if (oact && oact->sa_hand...
2001 Feb 18
3
OpenSSH 2.5.0p1 vs. SA_RESTART
...ave SA_RESTART (for instance, SunOS does 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:...
2002 Nov 20
2
RE - servers keeps disapearing
>Hi, > >> Is there a known problem with samba servers that keeps disappearing >> from network neighborhood? Had this problem with 2.2.3, have to >> restart nmbd to get them back on, but nmbd never stops. > >Yes - there _was_ a known problem with nmbd not reregistering names. >Has disappeared since 2.2.5. > I have upgraded to 2.2.6, still have the problem, but
2020 Aug 28
0
[klibc:ia64-signal-fix] ia64: sigaction: Make signal updates atomic
...+49,12 @@ int __rt_sigaction(int sig, const struct sigaction *act, rv = ____rt_sigaction(sig, act, oact, size); + if (rv) + signal_descriptors[sig].entry = old_entry; + + /* Restore signal mask */ + (void)sigprocmask(SIG_SETMASK, &old_signal_mask, NULL); + if (oact && oact->sa_handler != SIG_IGN && oact->sa_handler != SIG_DFL) { oact->sa_handler = (__sighandler_t)old_entry;
2020 Aug 29
0
[klibc:master] ia64: sigaction: Make signal updates atomic
...-41,6 +49,12 @@ int __rt_sigaction(int sig, struct sigaction *act, rv = ____rt_sigaction(sig, act, oact, size); + if (rv) + signal_descriptors[sig].entry = old_entry; + + /* Restore signal mask */ + (void)sigprocmask(SIG_SETMASK, &old_signal_mask, NULL); + if (oact && oact->sa_handler != SIG_IGN && oact->sa_handler != SIG_DFL) { oact->sa_handler = (__sighandler_t)old_entry;
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
2001 Jan 19
1
Core dumps on HP-UX
Hello, I've been trying to get openssh working at our site recently, but have been running into these problems. In using the "release" version (openssh-2.3.0p1) we kept getting these broken pipe errors: zcat: stdout: Broken pipe Damien suggested we try out the snapshot versions, so I've been trying out the daily versions since last week. With the snapshots, the pipe problem
2011 Dec 28
1
[PATCH] fish: fix the Ctrl-\ causes guestfish to abort bug(RHBZ#596761)
...ed-off-by: Wanlong Gao <gaowanlong at cn.fujitsu.com> --- fish/fish.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/fish/fish.c b/fish/fish.c index efd6b0b..b782b7c 100644 --- a/fish/fish.c +++ b/fish/fish.c @@ -402,6 +402,7 @@ main (int argc, char *argv[]) sa.sa_handler = user_cancel; sa.sa_flags = SA_RESTART; sigaction (SIGINT, &sa, NULL); + sigaction (SIGQUIT, &sa, NULL); guestfs_set_pgroup (g, 1); } -- 1.7.8
2015 Jan 22
0
libvirt + xen assertion
...9;/sys/devices/virtual/dmi/id' or '/sys/class/dmi/id' libvirtd: libxl_fork.c:350: sigchld_installhandler_core: Assertion `((void)"application must negotiate with libxl about SIGCHLD", !(sigchld_saved_action.sa_flags & 4) && (sigchld_saved_action.__sigaction_handler.sa_handler == ((__sighandler_t) 0) || sigchld_saved_action.__sigaction_handler.sa_handler == ((__sighandler_t) 1)))' failed. Aborted vmmachine ~ # VIRSH_DEBUG=0 virsh create xml create: file(optdata): xml libvirt: XML-RPC error : End of file while reading data: Input/output error error: Failed to create...
2018 Aug 08
2
Reproducible SIGSEGV when Dovecot 2.3 compiled against glibc-2.28
...mprotect(0x7f3eef450000, 4096, PROT_READ) = 0 mprotect(0x557e9c5e7000, 12288, PROT_READ) = 0 mprotect(0x7f3eef678000, 4096, PROT_READ) = 0 munmap(0x7f3eef668000, 54433) = 0 set_tid_address(0x7f3eef663e50) = 19762 set_robust_list(0x7f3eef663e60, 24) = 0 rt_sigaction(SIGRTMIN, {sa_handler=0x7f3eedfd2380, sa_mask=[], sa_flags=SA_RESTORER|SA_SIGINFO, sa_restorer=0x7f3eedfe0400}, NULL, 8) = 0 rt_sigaction(SIGRT_1, {sa_handler=0x7f3eedfd2430, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART|SA_SIGINFO, sa_restorer=0x7f3eedfe0400}, NULL, 8) = 0 rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NUL...
2023 Aug 31
0
[RFC PATCH v2 2/2] test/vsock: shutdowned socket test
...IT_FAILURE); >+ } >+ >+ if (have_sigpipe) { >+ fprintf(stderr, "SIGPIPE not expected\n"); >+ exit(EXIT_FAILURE); >+ } >+} >+ >+static void test_stream_shutwr_client(const struct test_opts *opts) >+{ >+ int fd; >+ >+ struct sigaction act = { >+ .sa_handler = sigpipe, >+ }; >+ >+ sigaction(SIGPIPE, &act, NULL); >+ >+ fd = vsock_stream_connect(opts->peer_cid, 1234); >+ if (fd < 0) { >+ perror("connect"); >+ exit(EXIT_FAILURE); >+ } >+ >+ if (shutdown(fd, SHUT_WR)) { >+ perror("shutdown&quo...
2001 Feb 12
2
patches for UnixWare v2.x pty (misc.c,configure.in)
...001. see: ** ** http://aa.usno.navy.mil/AA/faq/docs/millennium.html ** -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -------------- next part -------------- --- misc.c.1.6 Mon Feb 12 11:11:15 2001 +++ misc.c Sun Feb 11 22:33:22 2001 @@ -107,7 +107,7 @@ if (osa.sa_handler != act) { memset(&sa, 0, sizeof sa); sigemptyset(&sa.sa_mask); - sa.sa_flags = 0; + sa.sa_flags = SA_RESTART; sa.sa_handler = act; if (sigaction(sig, &sa, 0) == -1) return (mysig_t) -1; -------------- next part -------------- --- configure.in.1.235 Mon Feb 12 11:09:14...
2018 Aug 08
0
Reproducible SIGSEGV when Dovecot 2.3 compiled against glibc-2.28
..., PROT_READ) = 0 > mprotect(0x557e9c5e7000, 12288, PROT_READ) = 0 > mprotect(0x7f3eef678000, 4096, PROT_READ) = 0 > munmap(0x7f3eef668000, 54433)?????????? = 0 > set_tid_address(0x7f3eef663e50)???????? = 19762 > set_robust_list(0x7f3eef663e60, 24)???? = 0 > rt_sigaction(SIGRTMIN, {sa_handler=0x7f3eedfd2380, sa_mask=[], > sa_flags=SA_RESTORER|SA_SIGINFO, sa_restorer=0x7f3eedfe0400}, NULL, 8) > = 0 > rt_sigaction(SIGRT_1, {sa_handler=0x7f3eedfd2430, sa_mask=[], > sa_flags=SA_RESTORER|SA_RESTART|SA_SIGINFO, > sa_restorer=0x7f3eedfe0400}, NULL, 8) = 0 > rt_sigprocmask(SIG...
2016 Jul 11
0
Proposal for technique to stop a timer at any moment
...t; MAX_SIGUSR2 ) { + (u->sigusr2)++; + upsdebugx(1, "%s: UPS %s, sigusr2 up to %d", __func__, u->name, u->sigusr2); + } + } +} + static void setup_signals(void) { struct sigaction sa; @@ -869,6 +895,12 @@ static void setup_signals(void) /* handle reloading */ sa.sa_handler = set_reload_flag; sigaction(SIGHUP, &sa, NULL); + + /* Handle user signals. RP */ + sa.sa_handler = sigusr1_handler; + sigaction(SIGUSR1, &sa, NULL); + sa.sa_handler = sigusr2_handler; + sigaction(SIGUSR2, &sa, NULL); } void check_perms(const char *fn) diff -rup nut-2.7.4.orig/...
2014 Dec 09
3
Tiny suggestion for upslog.c
.../ static void setup_signals(void) { @@ -96,6 +101,11 @@ fatal_with_errno(EXIT_FAILURE, "Can't install SIGQUIT handler"); if (sigaction(SIGTERM, &sa, NULL) < 0) fatal_with_errno(EXIT_FAILURE, "Can't install SIGTERM handler"); + + sa.sa_handler = set_print_now_flag; + if (sigaction(SIGUSR1, &sa, NULL) < 0) + fatal_with_errno(EXIT_FAILURE, "Can't install SIGTERM handler"); + } static void help(const char *prog)
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
2009 Jul 14
0
[LLVMdev] "Recursive compilation detected" and signals
...0; timer.it_value.tv_usec = 250000; /* ... and every 250 msec after that. */ timer.it_interval.tv_sec = 0; timer.it_interval.tv_usec = 250000; /* Install timer_handler as the signal handler for SIGVTALRM. */ memset ((void *) &sa1, 0, (size_t) sizeof (sa1)); sa1.sa_handler = &timer_handler; sigaction (SIGVTALRM, &sa1, NULL); /* Install the SIGSEGV handler */ memset ((void *) &sa2, 0, (size_t) sizeof (sa2)); sa2.sa_handler = &sigsegv_handler; sigaction (SIGSEGV, &sa2, NULL); /* Set the timer to go off shortly */ if...