Code

utils channel: Added sdb_channel_shutdown().
authorSebastian Harl <sh@tokkee.org>
Mon, 21 Oct 2013 07:10:08 +0000 (09:10 +0200)
committerSebastian Harl <sh@tokkee.org>
Mon, 21 Oct 2013 07:10:08 +0000 (09:10 +0200)
commitcd2c02cefddee94e0142a8f1d3d156c05c58472a
tree03b2c125b53740c4779ddab7d623e42fb10c70f4
parentbed406a8fce9eb683059a3138dd33e4cf7bd71cd
utils channel: Added sdb_channel_shutdown().

This function initiates a shutdown of the channel, forbidding any subsequent
writes. However, readers are still able to empty the buffer. Then, EBADF will
be returned through errno. This allows for graceful shutdowns.
src/include/utils/channel.h
src/utils/channel.c