From 02703367a02c3dd85f2761d617f532668ceca906 Mon Sep 17 00:00:00 2001 From: Alexandra Ellwood Date: Tue, 18 Sep 2007 19:52:13 +0000 Subject: [PATCH] Added additional debugging error checking git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19951 dc483132-0cff-0310-8789-dd5450dbe970 --- src/ccapi/server/mac/ccs_os_server.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ccapi/server/mac/ccs_os_server.c b/src/ccapi/server/mac/ccs_os_server.c index eefac4c8a..c99547fe8 100644 --- a/src/ccapi/server/mac/ccs_os_server.c +++ b/src/ccapi/server/mac/ccs_os_server.c @@ -151,7 +151,7 @@ cc_int32 ccs_os_server_initialize (int argc, const char *argv[]) openlog (argv[0], LOG_CONS | LOG_PID, LOG_AUTH); syslog (LOG_INFO, "Starting up."); - + syslog (LOG_NOTICE, "Exiting: %s (%d)", kipc_error_string (err), err); return cci_check_error (err); @@ -198,7 +198,7 @@ cc_int32 ccs_os_server_send_reply (ccs_pipe_t in_reply_pipe, if (!err) { /* depending on how big the message is, use the fast inline buffer or - * the slow dynamically allocated buffer */ + * the slow dynamically allocated buffer */ mach_msg_type_number_t reply_length = cci_stream_size (in_reply_stream); if (reply_length > kCCAPIMaxILMsgSize) { @@ -208,6 +208,7 @@ cc_int32 ccs_os_server_send_reply (ccs_pipe_t in_reply_pipe, err = vm_read (mach_task_self (), (vm_address_t) cci_stream_data (in_reply_stream), reply_length, (vm_address_t *) &ool_reply, &ool_reply_length); + cci_check_error (err); } else { //cci_debug_printf ("%s choosing in line buffer (size is %d)", @@ -222,6 +223,7 @@ cc_int32 ccs_os_server_send_reply (ccs_pipe_t in_reply_pipe, err = ccs_mipc_reply (in_reply_pipe, inl_reply, inl_reply_length, ool_reply, ool_reply_length); + cci_check_error (err); } if (!err) { -- 2.26.2