]> git.tuebingen.mpg.de Git - paraslash.git/commit
udp_send: Add/remove the udp socket fd only once.
authorAndre Noll <maan@systemlinux.org>
Wed, 6 Oct 2010 20:56:23 +0000 (22:56 +0200)
committerAndre Noll <maan@systemlinux.org>
Sun, 31 Oct 2010 11:18:24 +0000 (12:18 +0100)
commit939ece34a0c1ae2f8c32436d31ed18de6b3c24b5
treea758aa3ca7c9127a020df578e5ef7abde5c6aacd
parent0eb1ce203c17c920ea9a0f1565f68db20b3edb1f
udp_send: Add/remove the udp socket fd only once.

Currently, we remove this fd from the close-on-fork list in
udp_close_target() and re-add it in udp_init_session(). This is wrong
because we want the fd being closed in the command handlers also if
the child process for the command is spawned while the udp sender
is inactive.

So add/delete the fd when the udp target is added/removed rather than
on a per session basis.
udp_send.c