summaryrefslogtreecommitdiff
path: root/src/libunixonacid/unixmessage_drop.c
blob: 7fa34fbdfc6f31fe90c66cb4e4ab4ba299fa6288 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* ISC license. */

#include <errno.h>
#include <skalibs/djbunix.h>
#include <skalibs/unixmessage.h>

void unixmessage_drop (unixmessage_t const *m)
{
  int e = errno ;
  register unsigned int i = 0 ;
  for (; i < m->nfds ; i++) fd_close(m->fds[i]) ;
  errno = e ;
}