Changeset 0743696 for functions.c


Ignore:
Timestamp:
Sep 14, 2010, 2:11:44 AM (14 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.10, release-1.7, release-1.8, release-1.9
Children:
ba042db
Parents:
f544216
git-author:
David Benjamin <davidben@mit.edu> (08/21/10 23:23:08)
git-committer:
David Benjamin <davidben@mit.edu> (09/14/10 02:11:44)
Message:
Don't ignore the error code when doing a zwrite

Display a com_err-supplied error message. It's about time we fix the
false "Waiting for ack..." messages. Also, on an error in a zephyr with
multiple recipients, abort instead of continuing to send, to match the
zwrite binary.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    re488ec5 r0743696  
    345345{
    346346  owl_message *m;
     347  int ret;
    347348
    348349  if(strcmp(z->cmd, "zcrypt") == 0) {
     
    356357    owl_zwrite_set_message(z, msg);
    357358  }
    358   owl_zwrite_send_message(z);
     359  ret = owl_zwrite_send_message(z);
     360  if (ret != 0) {
     361    owl_function_makemsg("Error sending zephyr: %s", error_message(ret));
     362    return;
     363  }
    359364  owl_function_makemsg("Waiting for ack...");
    360365
Note: See TracChangeset for help on using the changeset viewer.