diff options
Diffstat (limited to 'sync_pipe_write.c')
-rw-r--r-- | sync_pipe_write.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sync_pipe_write.c b/sync_pipe_write.c index d0def511ce..337e0414b4 100644 --- a/sync_pipe_write.c +++ b/sync_pipe_write.c @@ -104,11 +104,12 @@ pipe_write_block(int pipe, char indicator, const char *msg) void -sync_pipe_errmsg_to_parent(const char *error_msg, const char *secondary_error_msg) +sync_pipe_errmsg_to_parent(int pipe, const char *error_msg, + const char *secondary_error_msg) { /* first write a "master header" with the length of the two messages plus their "slave headers" */ - pipe_write_header(1, SP_ERROR_MSG, strlen(error_msg) + 1 + 4 + strlen(secondary_error_msg) + 1 + 4); - pipe_write_block(1, SP_ERROR_MSG, error_msg); - pipe_write_block(1, SP_ERROR_MSG, secondary_error_msg); + pipe_write_header(pipe, SP_ERROR_MSG, strlen(error_msg) + 1 + 4 + strlen(secondary_error_msg) + 1 + 4); + pipe_write_block(pipe, SP_ERROR_MSG, error_msg); + pipe_write_block(pipe, SP_ERROR_MSG, secondary_error_msg); } |