search for: nonblocking

Displaying 20 results from an estimated 367 matches for "nonblocking".

2020 Apr 04
0
[PATCH] nonblocking: remove usleep usage
usleep is deprecated under POSIX 2008 and is optionally unavailable with uClibc-ng. Signed-off-by: Rosen Penev <rosenp at gmail.com> --- examples/nonblocking.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/nonblocking.c b/examples/nonblocking.c index 8e38a94..2f15b80 100644 --- a/examples/nonblocking.c +++ b/examples/nonblocking.c @@ -70,8 +70,10 @@ int main() if (ret == SHOUTERR_BUSY) printf("Connect...
2004 Aug 06
1
libshout nonblocking API
I propose the following changes to the libshout API to support nonblocking I/O: New functions: int shout_set_nonblocking(shout_t *self, unsigned int nonblocking): Instructs libshout to use nonblocking I/O. Must be called before shout_open (no switching back and forth midstream at the moment). unsigned int shout_get_nonblocking(shout_t *self): self-explanatory. Changed...
2014 Oct 01
2
Re: [libvirt] increase number of libvirt threads by starting tansient guest doamin - is it a bug?
...0x00007f1906e6684d in read () at >> ../sysdeps/unix/syscall-template.S:81 >> #1 0x00007f18f8c415be in read (__nbytes=16, __buf=0x7f18d4000c50, >> __fd=26) at /usr/include/bits/unistd.h:44 >> #2 read_all (fd=26, data=data@entry =0x7f18d4000c50, len=len@entry =16, >> nonblocking=nonblocking@entry =0) at xs.c:374 >> #3 0x00007f18f8c41675 in read_message (h=h@entry =0x7f18e8001070, >> nonblocking=nonblocking@entry =0) at xs.c:1139 >> #4 0x00007f18f8c41e90 in read_thread (arg=0x7f18e8001070) at xs.c:1211 >> #5 0x00007f1906e5ff35 in start_thread (arg=0...
2019 Sep 16
2
ssh client is setting O_NONBLOCK on a pipe shared with other processes
> ssh has to set NONBLOCK otherwise it can, well, block - there's > no way for ssh to know a priori how much data it can write to a fd. I don't know anything about how ssh is structured, but I think it must be a bit more complicated than that. Ssh only sets O_NONBLOCK on an fd if isatty(fd) returns false, so it's able to function with blocking input and output if the relevant
2013 Jul 08
1
Non-blocking file_dotlock_open() in quota-maildir question
Hello, Is it safe to change lines in plugins/quota/quota-maildir.c::maildirsize_write() from ? fd = file_dotlock_open_group(.., DOTLOCK_CREATE_FLAG_NONBLOCK, ..); to ? fd = file_dotlock_open_group(.., 0, ..); ? Rationale is: exim+cpanel frequently leave stale maldirsize.lock, but when quota plugin try to dotlock maildirsize, it do this with NONBLOCK flag and just once, so first lock fails with
2006 Nov 01
0
fatal flaw in popen4 on windows? [WAS] Re: Nonblocking IO read (fwd)
...to see if anyone has any ideas/suggestions. Regards, Dan > -----Original Message----- > From: ara.t.howard at noaa.gov [mailto:ara.t.howard at noaa.gov] > Sent: Wednesday, November 01, 2006 12:36 PM > To: Berger, Daniel > Subject: fatal flaw in popen4 on windows? [WAS] Re: > Nonblocking IO read (fwd) > > > > hi dan- > > forgot to cc you on this... hopefully you''ll have some suggestions? > > regards. > > -a > -- > my religion is very simple. my religion is kindness. -- the > dalai lama > > ---------- Forwarded message...
2014 Oct 01
2
Re: [libvirt] increase number of libvirt threads by starting tansient guest doamin - is it a bug?
...SYMBOL, SYSCALL_NAME, SYSCALL_NARGS) (gdb) bt #0 0x00007f1906e6684d in read () at ../sysdeps/unix/syscall-template.S:81 #1 0x00007f18f8c415be in read (__nbytes=16, __buf=0x7f18d4000c50, __fd=26) at /usr/include/bits/unistd.h:44 #2 read_all (fd=26, data=data@entry =0x7f18d4000c50, len=len@entry =16, nonblocking=nonblocking@entry =0) at xs.c:374 #3 0x00007f18f8c41675 in read_message (h=h@entry =0x7f18e8001070, nonblocking=nonblocking@entry =0) at xs.c:1139 #4 0x00007f18f8c41e90 in read_thread (arg=0x7f18e8001070) at xs.c:1211 #5 0x00007f1906e5ff35 in start_thread (arg=0x7f190893d700) at pthread_create.c:30...
2008 Aug 30
3
Updated version of patch
Attached is a patch against shout-python-0.2 which does two trivial but very useful things (1) The function "get_connected" is exported so that shout-python becomes usable in nonblocking mode. In the current version of shout-python "open" raises an exception in nonblocking mode. (2) The global interpreter lock is released in the potentially blocking functions "open", "send" and "sync". In this way a shout-python can run in blocking mode in...
2009 Jul 06
1
Nonblocking connect is not proprly checked in poll implementation
Hello, I found a bug in Icecast-2.3.2. SVN trunk is affected either. The problem lies in src/net/sock.c: sock_connected() function. This function is used to check status of socket after nonblocking connect(2) and it has two implementations: select(2) and poll(2). The select branch does the right job---it gets socket status by getsockopt(2) after selecting for write. But the poll branch does not. To make things wrong, the poll implementaion takes precedense. The bug makes icecast thinking the...
2007 Sep 14
1
[Bug 1288] ssh-add on Cygwin -- can't access ssh-agent socket
...make a socket call will be spyed process attached, command line='C:\cygwin\bin\ssh-add.exe "/cygdrive/c/Documents and Settings/ueltschit/.ssh/id_dsa"' socket (704) created [family=AF_INET, type=SOCK_STREAM, protocol=IPPROTO_IP, dwFlags=WSA_FLAG_OVERLAPPED] socket (704) enabled its nonblocking mode socket (704) connecting synchronously without blocking [name=127.0.0.1:2436] socket (704) could not connect - WSAEWOULDBLOCK (A non-blocking socket operation could not be completed immediately) socket (676) created [family=AF_INET, type=SOCK_DGRAM, protocol=IPPROTO_UDP, dwFlags=WSA_FLAG_OVERLA...
2014 Oct 01
0
Re: [libvirt] increase number of libvirt threads by starting tansient guest doamin - is it a bug?
..., SYSCALL_NARGS) > (gdb) bt > #0 0x00007f1906e6684d in read () at ../sysdeps/unix/syscall-template.S:81 > #1 0x00007f18f8c415be in read (__nbytes=16, __buf=0x7f18d4000c50, __fd=26) at /usr/include/bits/unistd.h:44 > #2 read_all (fd=26, data=data@entry =0x7f18d4000c50, len=len@entry =16, nonblocking=nonblocking@entry =0) at xs.c:374 > #3 0x00007f18f8c41675 in read_message (h=h@entry =0x7f18e8001070, nonblocking=nonblocking@entry =0) at xs.c:1139 > #4 0x00007f18f8c41e90 in read_thread (arg=0x7f18e8001070) at xs.c:1211 > #5 0x00007f1906e5ff35 in start_thread (arg=0x7f190893d700) at pthr...
2014 Oct 02
0
Re: [libvirt] increase number of libvirt threads by starting tansient guest doamin - is it a bug?
...in read () at >>> ../sysdeps/unix/syscall-template.S:81 >>> #1 0x00007f18f8c415be in read (__nbytes=16, __buf=0x7f18d4000c50, >>> __fd=26) at /usr/include/bits/unistd.h:44 >>> #2 read_all (fd=26, data=data@entry =0x7f18d4000c50, len=len@entry =16, >>> nonblocking=nonblocking@entry =0) at xs.c:374 >>> #3 0x00007f18f8c41675 in read_message (h=h@entry =0x7f18e8001070, >>> nonblocking=nonblocking@entry =0) at xs.c:1139 >>> #4 0x00007f18f8c41e90 in read_thread (arg=0x7f18e8001070) at xs.c:1211 >>> #5 0x00007f1906e5ff35 in sta...
2016 May 27
2
[PATCH v3 7/7] [wip] virtio-gpu: add page flip support
On Mi, 2016-05-25 at 18:37 +0200, Daniel Vetter wrote: > On Fri, Oct 2, 2015 at 1:58 PM, Gerd Hoffmann <kraxel at redhat.com> wrote: > > Signed-off-by: Gerd Hoffmann <kraxel at redhat.com> > > So I entirely missed this, but this isn't really how to implement > page_flip for an atomic driver. Working on some stuff and will hack up > a likely totally broken
2016 May 27
2
[PATCH v3 7/7] [wip] virtio-gpu: add page flip support
On Mi, 2016-05-25 at 18:37 +0200, Daniel Vetter wrote: > On Fri, Oct 2, 2015 at 1:58 PM, Gerd Hoffmann <kraxel at redhat.com> wrote: > > Signed-off-by: Gerd Hoffmann <kraxel at redhat.com> > > So I entirely missed this, but this isn't really how to implement > page_flip for an atomic driver. Working on some stuff and will hack up > a likely totally broken
2010 Oct 19
1
[PATCH] virtio: console: Don't block entire guest if host doesn't read data
If the host is slow in reading data or doesn't read data at all, blocking write calls not only blocked the program that called write() but the entire guest itself. To overcome this, let's not block till the host signals it has given back the virtio ring element we passed it. Instead, send the buffer to the host and return to userspace. This operation then becomes similar to how
2010 Oct 19
1
[PATCH] virtio: console: Don't block entire guest if host doesn't read data
If the host is slow in reading data or doesn't read data at all, blocking write calls not only blocked the program that called write() but the entire guest itself. To overcome this, let's not block till the host signals it has given back the virtio ring element we passed it. Instead, send the buffer to the host and return to userspace. This operation then becomes similar to how
2015 Jan 22
0
How to do nonblocking writes to CIFS networkshares?
Hi! I'm new to this mailing list, so please help out if I'm adressing the wrong forum. :) I'm working on an application accessing a mounted networkshare. Under normal circumstances there is no problem accessing reading and writing to the networkshare using POSIX open(2)/read(2)/write(2) etc. However if there is intermittent connectivity problems to the networkshare my
2008 Sep 24
2
[PATCH] disable nonblocking mode on serial port
Hi, I got a new Cyberpower 1500AVR UPS and nut wouldn't work. It failed to detect the UPS and a strace showed that all writes to the serial port were failing with -EAGAIN. The attached patch disabled nonblocking mode on the serial port and now it works fine. Is there a reason the port was put in non-blocking mode? There's no code I could find to deal with the inevitable -EAGAIN that you'd receive on writes. Maybe the delays introduced by ser_send_pace are why it might work for some people? -jim...
2016 May 30
2
[PATCH v3 7/7] [wip] virtio-gpu: add page flip support
...er_page_flip as .page_flip hook instead of > rolling your own, when you have a brand-new atomic driver. If that helper > doesn't work that means you have a bug in your driver somewhere. > > And indeed virtio just plugs in drm_atomic_helper_commit, which thus far > doesnt' do nonblocking commits, which means the page flip stuff won't > work. I'm working on generic nonblocking atomic to fix this up. Currently > still wip and buggy though, hence no patches. > > But I'll take you up on the implied offer to help out and test ;-) Ok, patches are now on the list...
2016 May 30
2
[PATCH v3 7/7] [wip] virtio-gpu: add page flip support
...er_page_flip as .page_flip hook instead of > rolling your own, when you have a brand-new atomic driver. If that helper > doesn't work that means you have a bug in your driver somewhere. > > And indeed virtio just plugs in drm_atomic_helper_commit, which thus far > doesnt' do nonblocking commits, which means the page flip stuff won't > work. I'm working on generic nonblocking atomic to fix this up. Currently > still wip and buggy though, hence no patches. > > But I'll take you up on the implied offer to help out and test ;-) Ok, patches are now on the list...