diff options
Diffstat (limited to 'src/libs6rc/s6rc_monitor.c')
-rw-r--r-- | src/libs6rc/s6rc_monitor.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libs6rc/s6rc_monitor.c b/src/libs6rc/s6rc_monitor.c index bd27e8b..4a84cac 100644 --- a/src/libs6rc/s6rc_monitor.c +++ b/src/libs6rc/s6rc_monitor.c @@ -7,9 +7,9 @@ #include <s6-rc/connection-common.h> #include <s6-rc/connection.h> -int s6rc_monitor (s6rc_connection_t *a, textmessage_receiver_t *asyncin, char *asyncbuf, size_t asyncbufsize, tain_t const *deadline, tain_t *stamp) +int s6rc_monitor (s6rc_connection_t *a, s6rc_monitor_t *mon, tain_t const *deadline, tain_t *stamp) { if (!textmessage_timed_send(&a->out, "M", 1, deadline, stamp)) return 0 ; - if (!textmessage_recv_channel(textmessage_receiver_fd(&a->in), asyncin, asyncbuf, asyncbufsize, S6RC_MONITOR_BANNER, S6RC_MONITOR_BANNERLEN, deadline, stamp)) return 0 ; + if (!textmessage_recv_channel(textmessage_receiver_fd(&a->in), &mon->in, mon->inbuf, S6RC_MONITOR_BUFSIZE, S6RC_MONITOR_BANNER, S6RC_MONITOR_BANNERLEN, deadline, stamp)) return 0 ; return 1 ; } |