--- a/libpurple/protocols/jabber/si.c Tue May 06 18:27:58 2014 +0200 +++ b/libpurple/protocols/jabber/si.c Wed May 07 11:07:45 2014 +0200 @@ -690,7 +690,8 @@ flags = fcntl(acceptfd, F_GETFL); fcntl(acceptfd, F_SETFL, flags | O_NONBLOCK); #ifndef _WIN32 - fcntl(acceptfd, F_SETFD, FD_CLOEXEC); + if (fcntl(acceptfd, F_SETFD, FD_CLOEXEC) != 0) + purple_debug_warning("jabber", "si: couldn't set FD_CLOEXEC\n"); #endif purple_xfer_set_watcher(xfer, purple_input_add(acceptfd, PURPLE_INPUT_READ,