- Downloads
ts_core: do not reuse file-entries to avoid wrong callback activation
If file callback modified another file callback (unregister(old fd),
close(old fd), open => new fd (new fd == old fd), register(new fd)),
and that other file callback was triggered in same 'poll' call instance,
the wrong file callback (for 'new fd') would be incorrectly called.
Avoid issue by not reusing file-entries when registering new file
callbacks.
Signed-off-by:
Jussi Kivilinna <jussi.kivilinna@haltian.com>
Please sign in to comment