xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* Zero-sized reads from XenBus block
@ 2016-03-01 21:29 Sergei Lebedev
  2016-03-02 16:13 ` Wei Liu
  0 siblings, 1 reply; 5+ messages in thread
From: Sergei Lebedev @ 2016-03-01 21:29 UTC (permalink / raw)
  To: xen-devel

Hi list,

I’m not sure if this is the expected behaviour, but it seems zero-sized reads from /dev/xen/xenbus block. Here’s sample code in Python

    import os
    
    fd = os.open("/dev/xen/xenbus", os.O_RDWR)
    os.read(fd, 0)  # Blocks.

The issue is not language-specific, similar code in C blocks as well.

Regards,
Sergei
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-03-03 17:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-01 21:29 Zero-sized reads from XenBus block Sergei Lebedev
2016-03-02 16:13 ` Wei Liu
2016-03-02 16:35   ` Roger Pau Monné
2016-03-02 17:14     ` Boris Ostrovsky
2016-03-03 17:03       ` David Vrabel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).