As Corinna said "debugging could help" and she was right. One of my functions closed file descriptors 0 and 1 after successfull listen() call. Socket fd is 0 in my case. And so accept()'s errno was EBADF. Now my service is working.
-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/