search for: sa_flags

Displaying 20 results from an estimated 172 matches for "sa_flags".

2001 Feb 18
3
OpenSSH 2.5.0p1 vs. SA_RESTART
Not all OSes have 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; #...
2020 Aug 27
0
[klibc:master] signal: Add sysconfig setting to force SA_SIGINFO on
...t sigaction(int sig, const struct sigaction *act, struct sigaction *oact) { - int rv; - + unsigned int needed_flags = 0 #if _KLIBC_NEEDS_SA_RESTORER + | SA_RESTORER +#endif +#if _KLIBC_NEEDS_SA_SIGINFO + | SA_SIGINFO +#endif + ; struct sigaction sa; + int rv; - if (act && !(act->sa_flags & SA_RESTORER)) { + if (act && (act->sa_flags & needed_flags) != needed_flags) { sa = *act; + sa.sa_flags |= needed_flags; +#if _KLIBC_NEEDS_SA_RESTORER + if (!(act->sa_flags & SA_RESTORER)) + sa.sa_restorer = &__sigreturn; +#endif act = &sa; - - sa.sa_f...
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: Fix definition of struct sigaction
...Ben Hutchings <ben at decadent.org.uk> AuthorDate: Fri, 28 Aug 2020 17:36:34 +0100 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Fri, 28 Aug 2020 17:37:22 +0100 [klibc] ia64: Fix definition of struct sigaction ia64 only provides the RT signal API, in which the type of sa_flags is unsigned long and sa_mask is the last member of the struct. Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- usr/include/arch/ia64/klibc/archsignal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/include/arch/ia64/klibc/archsignal.h b/usr/include/a...
2020 Aug 28
0
[klibc:ia64-signal-fix] signal: Add config flag for additional sigaction fixup
...-git a/usr/klibc/sigaction.c b/usr/klibc/sigaction.c index d2223843..ed4cf5b5 100644 --- a/usr/klibc/sigaction.c +++ b/usr/klibc/sigaction.c @@ -28,7 +28,9 @@ int sigaction(int sig, const struct sigaction *act, struct sigaction *oact) struct sigaction sa; int rv; - if (act && (act->sa_flags & needed_flags) != needed_flags) { + if (act && + ((act->sa_flags & needed_flags) != needed_flags || + _KLIBC_NEEDS_SIGACTION_FIXUP)) { sa = *act; sa.sa_flags |= needed_flags; #if _KLIBC_NEEDS_SA_RESTORER
2020 Aug 28
0
[klibc:ia64-signal-fix] ia64: Fix definition of struct sigaction
...Ben Hutchings <ben at decadent.org.uk> AuthorDate: Fri, 28 Aug 2020 17:36:34 +0100 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Fri, 28 Aug 2020 20:22:50 +0100 [klibc] ia64: Fix definition of struct sigaction ia64 only provides the RT signal API, in which the type of sa_flags is unsigned long and sa_mask is the last member of the struct. Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- usr/include/arch/ia64/klibc/archsignal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/include/arch/ia64/klibc/archsignal.h b/usr/include/a...
2020 Aug 29
0
[klibc:master] ia64: Fix definition of struct sigaction
...Ben Hutchings <ben at decadent.org.uk> AuthorDate: Fri, 28 Aug 2020 17:36:34 +0100 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Sat, 29 Aug 2020 17:22:38 +0100 [klibc] ia64: Fix definition of struct sigaction ia64 only provides the RT signal API, in which the type of sa_flags is unsigned long and sa_mask is the last member of the struct. Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- usr/include/arch/ia64/klibc/archsignal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/include/arch/ia64/klibc/archsignal.h b/usr/include/a...
2020 Aug 29
0
[klibc:master] signal: Add config flag for additional sigaction fixup
...n int __sigaction(int, act_type, struct sigaction *); #endif int sigaction(int sig, const struct sigaction *act, struct sigaction *oact) @@ -28,7 +34,9 @@ int sigaction(int sig, const struct sigaction *act, struct sigaction *oact) struct sigaction sa; int rv; - if (act && (act->sa_flags & needed_flags) != needed_flags) { + if (act && + ((act->sa_flags & needed_flags) != needed_flags || + _KLIBC_NEEDS_SIGACTION_FIXUP)) { sa = *act; sa.sa_flags |= needed_flags; #if _KLIBC_NEEDS_SA_RESTORER @@ -46,9 +54,9 @@ int sigaction(int sig, const struct sigac...
2011 Dec 16
6
java installation failure
Readers, Openjdk and ibm java versions have failed to install, all reporting a bad elf, e.g. ./ibm-java-i386-sdk-7.0-0.0.bin Preparing to install... Extracting the JRE from the installer archive... Unpacking the JRE... Extracting the installation resources from the installer archive... Configuring the installer for this system's environment... strings: '/lib/libc.so.6': No such file
2019 Feb 02
0
[PATCH 2/2] ia64: Fix sigaction struct layout and function implementation
...not set any ELF flags that the kernel could detect. Thus to fix this regression we must construct descriptors solely for passing to/from the kernel. Despite this, usr/dash/static/sh -c "usr/utils/static/true; exit" was still seen to hang during the test suite. This is because sa_mask and sa_flags were round the wrong way (matching the old sigaction syscall rather than the newer rt_sigaction syscall, despite the former not existing on ia64), causing the kernel to think SA_NOCLDWAIT was set. This bug appears to have been present since the ia64 port was first committed. --- usr/include/arch/i...
2000 Feb 14
0
[openssh-1.2.2] some porting notes for SunOS 4.1.4
...rsa_alive() == 0) { ======================================================================== --- scp.c.orig-1.2.2 Thu Jan 13 23:45:51 2000 +++ scp.c Sun Feb 13 15:58:20 2000 @@ -1229,7 +1229,10 @@ struct sigaction sa; sa.sa_handler = updateprogressmeter; sigemptyset(&sa.sa_mask); - sa.sa_flags = SA_RESTART; + sa.sa_flags = 0; +#ifdef SA_RESTART + sa.sa_flags |= SA_RESTART; +#endif /* SA_RESTART */ sigaction(SIGALRM, &sa, NULL); alarmtimer(1); } else if (flag == 1) { ========================================================================
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
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
2011 Dec 28
1
[PATCH] fish: fix the Ctrl-\ causes guestfish to abort bug(RHBZ#596761)
...ong 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
2020 Aug 28
0
[klibc:ia64-signal-fix] signal: Move rt_sigaction() argument mangling to arch directories
...turn(void); +__extern int ____rt_sigaction(int, const struct sigaction *, struct sigaction *, + void (*)(void), size_t); + +int __rt_sigaction(int sig, const struct sigaction *act, + struct sigaction *oact, size_t size) +{ + void (*restorer)(void); + + restorer = (act && act->sa_flags & SA_RESTORER) + ? (void (*)(void))((uintptr_t)act->sa_restorer - 8) + : NULL; + return ____rt_sigaction(sig, act, oact, restorer, size); +} diff --git a/usr/klibc/arch/sparc64/Kbuild b/usr/klibc/arch/sparc64/Kbuild index 2854f698..dbc6c653 100644 --- a/usr/klibc/arch/sparc64/Kbuild +++ b/...
2018 Aug 08
2
Reproducible SIGSEGV when Dovecot 2.3 compiled against glibc-2.28
...D) = 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], NULL, 8) = 0 prlimit64(0, RLIMIT_STACK, N...
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 |
2010 Jan 11
0
[PATCH] Fix arm signals
...7 +#define SIGWINCH 28 +#define SIGIO 29 +#define SIGPOLL SIGIO +/* +#define SIGLOST 29 +*/ +#define SIGPWR 30 +#define SIGSYS 31 +#define SIGUNUSED 31 + +/* These should not be considered constants from userland. */ +#define SIGRTMIN 32 +#define SIGRTMAX _NSIG + +#define SIGSWI 32 + +/* + * SA_FLAGS values: + * + * SA_NOCLDSTOP flag to turn off SIGCHLD when children stop. + * SA_NOCLDWAIT flag on SIGCHLD to inhibit zombies. + * SA_SIGINFO deliver the signal with SIGINFO structs + * SA_THIRTYTWO delivers the signal in 32-bit mode, even if the task + * is running in 26-bit. + * SA_ONSTACK...
2001 Feb 12
2
patches for UnixWare v2.x pty (misc.c,configure.in)
...-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -------------- 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 2001 +++ configure.in Mon Feb 12 09:13:34 2001 @@ -196,6 +196,15 @@ mansubdir=cat LIBS=&...
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