search for: ppoll

Displaying 20 results from an estimated 47 matches for "ppoll".

Did you mean: poll
2006 Apr 22
1
ia64 build failure - no fork or ppoll syscalls in 2.6.16
klibc fails to build on ia64 because it has neither fork nor the ppoll syscalls. 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...
2019 Jun 18
0
[nbdkit PATCH] Experiment: nbd: Use ppoll() instead of pipe-to-self
...e-to-self to instead calling pthread_kill() to force EINTR. Unfortunately, using only poll() for this is racy; to fix the race, we either have to resort to POSIX pselect() (which is horribly klunky and does not scale well to large fd values if we have lots of parallel clients) or use the non-POSIX ppoll() (these days, BSD and Linux systems all have it; if someone complains about failure to compile, we can #ifdef the code and fall back to pipe-to-self on the systems lacking ppoll()). Also unfortunately, the timing does not favor this approach. Repeating the setup for commit e897ed70, I see the fol...
2023 Feb 01
15
[Bug 3531] New: Ssh will not exit when it receives SIGTERM before calling poll in client_wait_until_can_do_something until some events happen.
https://bugzilla.mindrot.org/show_bug.cgi?id=3531 Bug ID: 3531 Summary: Ssh will not exit when it receives SIGTERM before calling poll in client_wait_until_can_do_something until some events happen. Product: Portable OpenSSH Version: 9.1p1 Hardware: Other OS: Linux Status:
2019 Aug 03
0
[nbdkit PATCH 3/3] server: Add and use nbdkit_nanosleep
...o 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 servicing nano...
2019 Aug 03
5
[nbdkit PATCH 0/3] More responsive shutdown
...hread exits, even though the detatched threads are still around); if you avoid --run and actually keep nbdkit in the foreground in one terminal and use nbdsh in a different terminal, choosing which terminal gets ^C, the effects are a bit more apparent. Patch 3 needs porting to any platform lacking ppoll. I have ideas for that port, but don't want to spend time on it before knowing for sure we need the port. And the fact that the pre-patch tests show output after the shell prompt returns means we still have cases where our detached threads are executing past the point where the main thread has...
2024 Mar 08
6
[Bug 3670] New: [ssh-agent] 100% CPU spin in cleanup_handler signal handler
https://bugzilla.mindrot.org/show_bug.cgi?id=3670 Bug ID: 3670 Summary: [ssh-agent] 100% CPU spin in cleanup_handler signal handler Product: Portable OpenSSH Version: 9.6p1 Hardware: amd64 OS: Mac OS X Status: NEW Severity: enhancement Priority: P5 Component:
2019 Aug 28
2
[PATCH nbdkit] freebsd: In nbdkit_nanosleep, fallback to calling nanosleep(2).
...nsigned sec, unsigned nsec) { + struct timespec ts; + + if (sec >= INT_MAX - nsec / 1000000000) { + nbdkit_error ("sleep request is too long"); + errno = EINVAL; + return -1; + } + ts.tv_sec = sec + nsec / 1000000000; + ts.tv_nsec = nsec % 1000000000; + #if defined HAVE_PPOLL && defined POLLRDHUP /* End the sleep early if any of these happen: * - nbdkit has received a signal to shut down the server @@ -311,7 +321,6 @@ nbdkit_nanosleep (unsigned sec, unsigned nsec) * NBD_CMD_DISC or a problem with the connection * - the input socket detects POLLR...
2013 Sep 18
2
Trouble using virStream with callbacks
I am trying to write a simple app which connects a channel obtained from virDomainOpenChannel() to stdin/stdout (based in part on the snippet at [1]). However, it seems like the data received back from the stream is delayed by one iteration. It would be hard to explain this by simply showing the output, so here's a timeline instead: 1. start the program on the host 2. write "msg from
2023 Jan 14
1
[klibc:time64] time: Use 64-bit time types on all architectures
...int pselect6_time64::__pselect6(int, fd_set *, fd_set *, fd_set *, struct timespec *, const struct __pselect6 *); +<64> int pselect6::__pselect6(int, fd_set *, fd_set *, fd_set *, struct timespec *, const struct __pselect6 *); <?> int poll(struct pollfd *, nfds_t, long); -<?> int ppoll::__ppoll(struct pollfd *, nfds_t, struct timespec *, const sigset_t *, size_t); +<32> int ppoll_time64::__ppoll(struct pollfd *, nfds_t, struct timespec *, const sigset_t *, size_t); +<64> int ppoll::__ppoll(struct pollfd *, nfds_t, struct timespec *, const sigset_t *, size_t); int fsy...
2014 Oct 15
2
Re: Virt-v2v conversion issue
...f45b0750c in worker_thread () > #3 0x00007f0f4203bdf3 in start_thread (arg=0x7f0f3cea9700) at pthread_create.c:308 > #4 0x00007f0f41d6901d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113 > > Thread 1 (Thread 0x7f0f45aa88c0 (LWP 9582)): > #0 0x00007f0f41d5eb0f in __GI_ppoll (fds=0x7f0f470d7a00, nfds=1, timeout=<optimized out>, sigmask=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:56 > #1 0x00007f0f45b146db in qemu_poll_ns () > #2 0x00007f0f45b15430 in aio_poll () > #3 0x00007f0f45b0eedd in bdrv_prwv_co () > #4 0x00007f0f45b0efd3 in bdrv_rw_co () &gt...
2019 Aug 06
1
[nbdkit PATCH] tests: Test for faster shutdown
The test relies on the timeout program. Also, since the nbdkit_nanosleep code relies on the Linux extension POLLRDHUP to detect early client closure, we may have to relax that part of the test when porting to platforms that lack ppoll/POLLRDHUP. (That is, while we should still be able to let a signal to the server shut down nbdkit quickly, it's harder to let a client close()ing its end cause nbdkit to shut down a single connection quickly when limited to a poll that can't identify EOF as a way to break a poll). Signed-...
2019 Jun 29
0
[libnbd PATCH 1/6] api: Add nbd_aio_in_flight
...issues a command will need a way to kick the polling thread out of -poll in case issuing the command changes the needed polling -direction. Possible ways to do this include polling for activity on a -pipe-to-self, or using L<pthread_kill(3)> to send a signal that is -masked except during L<ppoll(2)>. +returned even when there are no commands in flight (see +C<nbd_aio_in_flight>). In a single-threaded use of libnbd, it is not +worth polling until after issuing a command, as otherwise the server +will never wake up the poll. In a multi-threaded scenario, you can +have one thread beg...
2023 Jan 26
0
[klibc:time64] select: Make all select calls wrappers for pselect6()
...oid *); int flock(int, int); -<?> int _newselect,select::select(int, fd_set *, fd_set *, fd_set *, struct timeval *); int pselect6::__pselect6(int, fd_set *, fd_set *, fd_set *, struct timespec *, const struct __pselect6 *); <?> int poll(struct pollfd *, nfds_t, long); <?> int ppoll::__ppoll(struct pollfd *, nfds_t, struct timespec *, const sigset_t *, size_t); diff --git a/usr/klibc/select.c b/usr/klibc/select.c index 8ad93a4b..11e71543 100644 --- a/usr/klibc/select.c +++ b/usr/klibc/select.c @@ -4,8 +4,6 @@ #include <errno.h> #include <sys/syscall.h> -#if !de...
2011 Aug 29
0
[PATCH] Add mempcpy() as wrapper around memcpy
...d *, 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 strncasecmp.o str...
2013 Sep 19
0
Re: Trouble using virStream with callbacks
...the guest during the blocking poll(), there will be no dispatching until something happens on stdin and poll() returns (hence why you have to <Enter> twice). I'm sure there's a better solution, but is there any way to force the timer created for streams to always be 0? Or even to use ppoll() instead of poll() and arrange for a benign signal upon stream events? Hopefully my analysis wasn't too far off. Cheers, Jonathan
2014 Oct 15
0
Re: Virt-v2v conversion issue
...imedwait () #2 0x00007f0f45b0750c in worker_thread () #3 0x00007f0f4203bdf3 in start_thread (arg=0x7f0f3cea9700) at pthread_create.c:308 #4 0x00007f0f41d6901d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113 Thread 1 (Thread 0x7f0f45aa88c0 (LWP 9582)): #0 0x00007f0f41d5eb0f in __GI_ppoll (fds=0x7f0f470d7a00, nfds=1, timeout=<optimized out>, sigmask=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:56 #1 0x00007f0f45b146db in qemu_poll_ns () #2 0x00007f0f45b15430 in aio_poll () #3 0x00007f0f45b0eedd in bdrv_prwv_co () #4 0x00007f0f45b0efd3 in bdrv_rw_co () #5 0x00007f0f45b05b35...
2018 Jul 12
4
[Bug 107210] New: Segment Fault while opening thunderbitf windows
...QA Contact: xorg-team at lists.x.org Application: KWin (kwin_x11), signal: Segmentation fault Using host libthread_db library "/usr/lib/libthread_db.so.1". [Current thread is 1 (Thread 0x7fac70d2de80 (LWP 2674))] Thread 6 (Thread 0x7fac4f5ef700 (LWP 3324)): #0 0x00007fac706afdd6 in ppoll () at /usr/lib/libc.so.6 #1 0x00007fac6da4ccbb in qt_safe_poll(pollfd*, unsigned long, timespec const*) () at /usr/lib/libQt5Core.so.5 #2 0x00007fac6da4e1ab in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5 #3 0x00007fac6d9fc6fc in...
2014 Oct 14
4
Re: Virt-v2v conversion issue
On Tue, Oct 14, 2014 at 03:40:22PM +0000, VONDRA Alain wrote: > Rich, > I've followed your instructions to trace, but I am not very skilful with gdb, maybe I made a mistake : > > (1) As root do: > > echo core.%p > /proc/sys/kernel/core_pattern -> OK > > (2) Before running virt-v2v, do: > > ulimited -c unlimited -> I think it's
2019 Aug 05
1
Re: [nbdkit PATCH 3/3] server: Add and use nbdkit_nanosleep
...t; 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 = quit_fd, > +...
2020 Aug 19
0
[libnbd PATCH 2/2] info: Use nbd_opt_info for fewer handles during --list
...--- a/info/nbdinfo.pod +++ b/info/nbdinfo.pod @@ -156,6 +156,8 @@ L<qemu-nbd(8)>. Richard W.M. Jones +Eric Blake + =head1 COPYRIGHT Copyright (C) 2020 Red Hat Inc. diff --git a/TODO b/TODO index 239e0b0..4a0cd22 100644 --- a/TODO +++ b/TODO @@ -9,12 +9,8 @@ Example code integrating with ppoll, pollfd, APR pollset (and others?). Example command line utils to copy in/out (like qemu-img convert). -NBD_OPT_INFO mode (like qemu-nbd -L). - NBD resize extension. -NBD_INFO_BLOCK_SIZE. - TLS should properly shut down the session (calling gnutls_bye). Performance: Chart it over various bu...