Changeset b8f7962


Ignore:
Timestamp:
Jul 12, 2011, 11:49:14 AM (13 years ago)
Author:
David Benjamin <davidben@mit.edu>
Children:
a105012
Parents:
16cf182d
git-author:
David Benjamin <davidben@mit.edu> (07/12/11 11:45:12)
git-committer:
David Benjamin <davidben@mit.edu> (07/12/11 11:49:14)
Message:
Suppress ZERR_INTERNAL from ZSetLocation for pre-3.0 zephyr

If you are subbed to your own login notifications, ZSetLocation will
wait for the wrong notice and return a spurious ZERR_INTERNAL.
Fortunately, from the debian/changelog, this was fixed right near the
boundary between 2.0 and 3.0, so we can suppress it for the old ABI.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • zephyr.c

    recffae6 rb8f7962  
    12311231    return -1;
    12321232  ret = ZSetLocation(zstr(exposure));
    1233   if (ret != ZERR_NONE) {
     1233  if (ret != ZERR_NONE
     1234#ifdef ZCONST
     1235      /* Before zephyr 3.0, ZSetLocation had a bug where, if you were subscribed
     1236       * to your own logins, it could wait for the wrong notice and return
     1237       * ZERR_INTERNAL when found neither SERVACK nor SERVNAK. Suppress it when
     1238       * building against the old ABI. */
     1239      && ret != ZERR_INTERNAL
     1240#endif
     1241     ) {
    12341242    owl_function_error("Unable to set exposure level: %s.", error_message(ret));
    12351243    return -1;
Note: See TracChangeset for help on using the changeset viewer.