[Bug 76922] Re: GIOChannel not noticing closed file descriptors

Kees Cook kees at ubuntu.com
Fri Dec 22 22:24:06 UTC 2006


This is a short test-case based on the gnome-gpg code.

Build with:
    gcc `pkg-config --cflags --libs gtk+-2.0` gchannel.c -o gchannel

Expected output:

read_status saw G_IO_IN -- reading
read size: 6
read_status saw G_IO_HUP -- quitting

Output with glib2.0 2.12.5-1ubuntu2:

read_status saw G_IO_IN -- reading
read size: 6
read_status saw G_IO_IN -- reading
read size: 0
read_status saw G_IO_IN -- reading
read size: 0
...


** Attachment added: "example that spins on feisty"
   http://librarian.launchpad.net/5516986/gchannel.c

-- 
GIOChannel not noticing closed file descriptors
https://launchpad.net/bugs/76922




More information about the desktop-bugs mailing list