search for: pselect

Displaying 20 results from an estimated 45 matches for "pselect".

Did you mean: select
2023 Jan 26
0
[klibc:time64] select: Fix handling of NULL timeout when wrapping pselect()
...b80e223c369467680536b71c781918e614219 Author: Ben Hutchings <ben at decadent.org.uk> AuthorDate: Sat, 14 Jan 2023 03:43:16 +0100 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Sun, 15 Jan 2023 21:28:18 +0100 [klibc] select: Fix handling of NULL timeout when wrapping pselect() If select() is called with no timeout, our implementation wrapping pselect() passes an uninitialised timespec buffer to pselect(). It should pass NULL. Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- usr/klibc/select.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)...
2011 May 29
2
nearly-tickless-tinc
Hi, tinc has a fixed timeout of 1 second for select() in the main loop. I think this could be improved. Do you think the following patch goes into the right direction ? I don't know whether pselect() is standard enough (works under "current" linux, however I don't know about the other arches). Maybe a config option is necessary. It's probably possible to simplify at least signal handling (I've tried to keep SIGHUP and SIGALRM blocking as they are, however I...
2006 Apr 22
1
ia64 build failure - no fork or ppoll syscalls in 2.6.16
...alls. This patch marks the former in SYSCALLS.def, and puts a guard wrapper around the ppoll definition in ppoll.c Should these calls return ENOSYS rather than simply not existing on some systems? If yes, please apply this and I'll follow up with a patch shortly that does ENOSYS for this and pselect at least. Signed-off-by: Jeff Bailey <jbailey@ubuntu.com> --- klibc-1.3.7.orig/klibc/ppoll.c +++ klibc-1.3.7/klibc/ppoll.c @@ -3,6 +3,9 @@ */ #include <sys/poll.h> +#include <sys/syscall.h> + +#if defined(__NR_ppoll) __extern int __ppoll(struct pollfd *, nfds_t, struct tim...
2006 Sep 29
5
Testing Report for Xen 3.0.3 rc1
...Lock) It''s also a user experience issue, sometimes the keyboard will work and sometimes not. 9. IA32 PAE SMP guest OS can''t reboot in IA32 PAE and IA32E xen0 The issue should be fixed in unstable C/S 11620. 10. LTP case "gettimeofday02", "ioperm02" and "pselect01" may fail in VMX "gettimeofday02" shows that: ==== gettimeofday02 0 INFO : checking if gettimeofday is monotonous, takes 30s gettimeofday02 1 FAIL : Time is going backwards (old 1134716003.371061 vs new 1134716003.371049! === "ioperm02" shows that: ioperm02...
2001 Oct 31
2
suggested fix for the sigchld race
comments? alternatives: sigsetjmp(ugly) and pselect(not portable, available) drawback: additional filedescriptors. Index: serverloop.c =================================================================== RCS file: /home/markus/cvs/ssh/serverloop.c,v retrieving revision 1.82 diff -u -r1.82 serverloop.c --- serverloop.c 10 Oct 2001 22:18:47 -0000 1.82...
2023 Jan 26
0
[klibc:time64] select: Make all select calls wrappers for pselect6()
...it;h=567944d04b7a94c7518857f518378191f6bb4046 Author: Ben Hutchings <ben at decadent.org.uk> AuthorDate: Sat, 14 Jan 2023 02:10:01 +0100 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Sun, 15 Jan 2023 21:28:18 +0100 [klibc] select: Make all select calls wrappers for pselect6() select() and pselect() don't have direct replacements that use 64-bit time on 32-bit architectures. Instead, we have to use the pselect6() system call which uses a different buffer structure. In preparation for using 64-bit time everywhere: - Make pselect6() a required system call - Make...
2007 Mar 19
23
puppet hangs while trying to restart a daemon
Hello all, puppet hangs while trying to restart a daemon when the associated config file changes, here the log: Mar 19 11:30:04 ingentTest puppetd[27390]: Starting Puppet client version 0.22.0 puppetd[27390]: Starting configuration run puppetd[27390]: (/ingenttest/qualsevolnode/guaita[guaita]/File[/etc/guaita.conf]/content) synced puppetd[27390]:
2015 Dec 10
2
[PATCH] Receive multiple packets at a time
...100644 --- a/configure.ac +++ b/configure.ac @@ -187,7 +187,7 @@ AC_CHECK_TYPES([socklen_t, struct ether_header, struct arphdr, struct ether_arp, dnl Checks for library functions. AC_TYPE_SIGNAL -AC_CHECK_FUNCS([asprintf daemon fchmod flock ftime fork get_current_dir_name gettimeofday mlockall pselect putenv random select strdup strerror strsignal strtol system unsetenv usleep vsyslog writev], +AC_CHECK_FUNCS([asprintf daemon fchmod flock ftime fork get_current_dir_name gettimeofday mlockall pselect putenv random recvmmsg select strdup strerror strsignal strtol system unsetenv usleep vsyslog wri...
2019 Aug 03
5
[nbdkit PATCH 0/3] More responsive shutdown
We noticed while writing various libnbd tests that when the delay filter is in use, there are scenarios where we had to resort to SIGKILL to get rid of nbdkit, because it was non-responsive to SIGINT. I'm still trying to figure out the best way to add testsuite coverage of this, but already proved to myself that it works from the command line, under two scenarios that both used to cause long
2019 Aug 03
0
[nbdkit PATCH 3/3] server: Add and use nbdkit_nanosleep
...ts nbdkit to quit, we are blocked waiting for a potentially long sleep to complete. This problem can be solved by realizing we already have a pipe-to-self to learn about a quit request or the end of a particular connection, and check for activities on those pipes in parallel with a timeout through pselect or ppoll to break our wait as soon as we know there is no reason to continue on with the transaction. Second, if we ever add support for a signal that is not fatal to nbdkit (such as SIGHUP triggering a config reload), but don't mask which thread can process that signal, then if a thread servi...
2023 Jun 13
1
Upssched 100% CPU after updating Debian 12
...ms that lack `usleep()`. With `select()` in your capture posting an array of FDs `[7 10]` I'd say it is the parent loop, and one of those is the `pipefd` and another is the FD for socket connection to talk to a particular child on the other side of the pipe. Here I must guess that either the `pselect6()` implementation behaves differently which would be surprising after decades worth of expected behavior, or that it for some reason decides that the FD #7 (whoever that is) raised the hand but was then silent (0 bytes read). The next clue is 128 reads, which leads to https://github.com/networkup...
2023 Jun 13
1
Upssched 100% CPU after updating Debian 12
...ms that lack `usleep()`. With `select()` in your capture posting an array of FDs `[7 10]` I'd say it is the parent loop, and one of those is the `pipefd` and another is the FD for socket connection to talk to a particular child on the other side of the pipe. Here I must guess that either the `pselect6()` implementation behaves differently which would be surprising after decades worth of expected behavior, or that it for some reason decides that the FD #7 (whoever that is) raised the hand but was then silent (0 bytes read). The next clue is 128 reads, which leads to https://github.com/networkup...
2011 Jun 24
0
[Announcement] Version 1.0.15 released
With pleasure we announce the release of version 1.0.15. Here is a summary of the changes: * Improved logging to file. * Reduced amount of process wakeups on platforms which support pselect(). * Fixed ProcessPriority option under Windows. Thanks to Lo?c Greni? for his contribution to this version of tinc. This version of tinc is compatible with 1.0pre8, 1.0 and later, but not with earlier version of tinc. -- Met vriendelijke groet / with kind regards, Guus Sliepen <guus...
2011 Jun 24
0
[Announcement] Version 1.0.15 released
With pleasure we announce the release of version 1.0.15. Here is a summary of the changes: * Improved logging to file. * Reduced amount of process wakeups on platforms which support pselect(). * Fixed ProcessPriority option under Windows. Thanks to Lo?c Greni? for his contribution to this version of tinc. This version of tinc is compatible with 1.0pre8, 1.0 and later, but not with earlier version of tinc. -- Met vriendelijke groet / with kind regards, Guus Sliepen <guus...
2011 Aug 29
0
[PATCH] Add mempcpy() as wrapper around memcpy
...memset(void *, int, size_t); __extern void *memmem(const void *, size_t, const void *, size_t); diff --git a/usr/klibc/Kbuild b/usr/klibc/Kbuild index c4f9ae2..d024f31 100644 --- a/usr/klibc/Kbuild +++ b/usr/klibc/Kbuild @@ -29,7 +29,7 @@ klib-y := vsnprintf.o snprintf.o vsprintf.o sprintf.o \ pselect.o ppoll.o \ brk.o sbrk.o malloc.o realloc.o calloc.o \ mmap.o shm_open.o shm_unlink.o \ - memcpy.o memcmp.o memset.o memccpy.o memmem.o memswap.o \ + memcpy.o mempcpy.o memcmp.o memset.o memccpy.o memmem.o memswap.o \ memmove.o memchr.o memrchr.o bzero.o \ strcasecmp.o strncasec...
2019 Aug 05
1
Re: [nbdkit PATCH 3/3] server: Add and use nbdkit_nanosleep
...e are blocked > waiting for a potentially long sleep to complete. This problem can be > solved by realizing we already have a pipe-to-self to learn about a > quit request or the end of a particular connection, and check for > activities on those pipes in parallel with a timeout through pselect > or ppoll to break our wait as soon as we know there is no reason to > continue on with the transaction. > > +++ b/server/public.c > +#else > + struct timespec ts; > + struct connection *conn = threadlocal_get_conn (); > + struct pollfd fds[2] = { > + [0].fd = q...
2023 Jun 13
1
Upssched 100% CPU after updating Debian 12
Hi, I ran the strace command while upssched was 100% CPU hungry. This is what I got: 1686633611.702798 read(7, "", 1) = 0 <0.000004> 1686633611.702816 read(7, "", 1) = 0 <0.000004> 1686633611.702834 pselect6(11, [7 10], NULL, NULL, {tv_sec=1, tv_nsec=0}, NULL) = 1 (in [7], left {tv_sec=0, tv_nsec=999998800}) <0.000006> 1686633611.702862 read(7, "", 1) = 0 <0.000004> 1686633611.702880 read(7, "", 1) = 0 <0.000004> . . . 1686633611.705206 read(7, &quot...
2023 Jun 13
1
Upssched 100% CPU after updating Debian 12
Hi, I ran the strace command while upssched was 100% CPU hungry. This is what I got: 1686633611.702798 read(7, "", 1) = 0 <0.000004> 1686633611.702816 read(7, "", 1) = 0 <0.000004> 1686633611.702834 pselect6(11, [7 10], NULL, NULL, {tv_sec=1, tv_nsec=0}, NULL) = 1 (in [7], left {tv_sec=0, tv_nsec=999998800}) <0.000006> 1686633611.702862 read(7, "", 1) = 0 <0.000004> 1686633611.702880 read(7, "", 1) = 0 <0.000004> . . . 1686633611.705206 read(7, &quot...
2006 Jun 07
4
[patch] s390: vfork support
From: Heiko Carstens <heiko.carstens@de.ibm.com> vfork support for s390/s390x. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> --- diff -purN a/usr/klibc/SYSCALLS.def b/usr/klibc/SYSCALLS.def --- a/usr/klibc/SYSCALLS.def 2006-06-07 09:44:33.000000000 +0200 +++ b/usr/klibc/SYSCALLS.def 2006-06-07 13:01:54.000000000 +0200 @@ -28,7 +28,7 @@ void _exit,exit::_exit(int) ; A
2016 Jan 06
0
[klibc:master] Add pread and pwrite 32bit syscall wrappers for parisc
.../* _ENDIAN_H */ diff --git a/usr/klibc/Kbuild b/usr/klibc/Kbuild index 40d43c7..d3e2b9f 100644 --- a/usr/klibc/Kbuild +++ b/usr/klibc/Kbuild @@ -35,6 +35,7 @@ klib-y += vsnprintf.o snprintf.o vsprintf.o sprintf.o \ siglongjmp.o \ sigaction.o sigpending.o sigprocmask.o sigsuspend.o \ pselect.o ppoll.o \ + pread.o pwrite.o \ brk.o sbrk.o malloc.o realloc.o zalloc.o calloc.o \ mmap.o shm_open.o shm_unlink.o \ memcpy.o memcmp.o memset.o memccpy.o memmem.o memswap.o \ diff --git a/usr/klibc/SYSCALLS.def b/usr/klibc/SYSCALLS.def index 41cfa17..c56e8f9 100644 --- a/usr/klibc/SY...