Scope callout_stop drain case properly

A deadlock condition was introduced with commit 164ca60.
Essentially callout_stop was incorrectly always running the "drain"
code where it is allowed to block if curently executing.  Constrain
the behavior properly (via the CS_DRAIN flag), and cleanup one use
case.

Note: this likely restores the original race condition for which the
original set of changes were added to guard against.
2 files changed
tree: 1442a6c0e870d33b96fedf95b4d3b3fee0781546
  1. .gitignore
  2. CMakeLists.txt
  3. LICENSE.md
  4. Makefile.am
  5. Makefile.nmake
  6. Manual.md
  7. Manual.tex
  8. README.md
  9. bootstrap
  10. configure.ac
  11. fuzzer/
  12. gen-def.py
  13. meson.build
  14. meson_options.txt
  15. programs/
  16. usrsctp.pc.in
  17. usrsctplib/
README.md

usrsctp

Coverity Scan Build Status

This is a userland SCTP stack supporting FreeBSD, Linux, Mac OS X and Windows.

See manual for more information.

The status of continuous integration testing is available from our Buildbot.