• spiiroin's avatar
    [trigger] Fix udev iowatch issues · 7bc44985
    spiiroin authored
    Various pointers are uninitialized / left to hold stale values after
    releasing. Which could lead to hard to debug problems if trigger_stop() is
    called multiple times / after unsuccessful trigger_init().
    
    Zero initialize all pointers dealing with dynamic resources and clear them
    when resources are released.
    
    Also clear iowatch id when it is going to be implicitly removed due to the
    return value from the callback so that removal is not attempted anymore
    when/if trigger_stop() is called later on.
    Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
    7bc44985
Name
Last commit
Last update
config Loading commit data...
debian Loading commit data...
docs Loading commit data...
openembedded Loading commit data...
rpm Loading commit data...
src Loading commit data...
systemd Loading commit data...
utils Loading commit data...
.gitignore Loading commit data...
Copyright Loading commit data...
LICENSE Loading commit data...
Makefile.am Loading commit data...
README.md Loading commit data...
TODO Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
usb-moded.ini Loading commit data...
usb_moded.pc.in Loading commit data...