• Derek Foreman's avatar
    tests: Check for wrong fd delivery with zombie objects · ff992951
    Derek Foreman authored
    Until recently, if an event attempting to deliver an fd to a zombie
    object was demarshalled after the object was made into a zombie, we
    leaked the fd and left it in the buffer.
    
    If another event attempting to deliver an fd to a live object was in that
    same buffer, the zombie's fd would be delivered instead.
    
    This test recreates that situation.
    
    While this is a ridiculously contrived way to force this race - delivering
    an event from a destruction handler - I do have reports of this race
    being hit in real world code.
    Signed-off-by: default avatarDerek Foreman <derekf@osg.samsung.com>
    Acked-by: Daniel Stone's avatarDaniel Stone <daniels@collabora.com>
    ff992951
Name
Last commit
Last update
cursor Loading commit data...
doc Loading commit data...
m4 Loading commit data...
protocol Loading commit data...
spec Loading commit data...
src Loading commit data...
tests Loading commit data...
.gitignore Loading commit data...
COPYING Loading commit data...
Makefile.am Loading commit data...
README Loading commit data...
TODO Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
publish-doc Loading commit data...
wayland-scanner.m4 Loading commit data...
wayland-scanner.mk Loading commit data...