[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Functions that are unsafe to be used from event callbacks?
[Thread Prev] | [Thread Next]
- Subject: Functions that are unsafe to be used from event callbacks?
- From: Joerg Pommnitz <pommnitz@xxxxxxxxx>
- Reply-to: Joerg Pommnitz <pommnitz@xxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Fri, 5 Dec 2014 11:13:02 +0000 (UTC)
- To: libssh List <libssh@xxxxxxxxxx>
Hello all,it seems that there is a number of functions that are unsafe to use inside callbacks from ssh_event_dopoll. Are these functions documented somewhere? I found out the hard way that anything that calls ssh_channel_close will block the event loop and calling ssh_event_remove_fd from a callback causes use after free errors. -- Regards Joerg
Archive administrator: postmaster@lists.cynapses.org