]> git.meshlink.io Git - meshlink/commitdiff
Make sure meshlink_stop() works as advertised.
authorGuus Sliepen <guus@meshlink.io>
Thu, 15 May 2014 15:53:54 +0000 (17:53 +0200)
committerGuus Sliepen <guus@meshlink.io>
Thu, 15 May 2014 15:53:54 +0000 (17:53 +0200)
At least on Linux, one way to signal a sleeping select() call in
the thread is to call shutdown() on the listening sockets. A subsequent
accept() returns EINVAL, we use that as a cue to shut down the main
loop.


No differences found