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

#include <skalibs/djbunix.h>
#include <skalibs/textmessage.h>

#include <s6-rc/connection-common.h>
#include <s6-rc/connection.h>

void s6rc_connection_end (s6rc_connection_t *a)
{
  fd_close(textmessage_sender_fd(&a->out)) ;
  textmessage_sender_free(&a->out) ;
  textmessage_receiver_free(&a->in) ;
}