Changeset c855755 for zephyr.c


Ignore:
Timestamp:
Jul 16, 2011, 12:31:32 AM (10 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.8, release-1.9
Children:
5b24dc0
Parents:
2770be99
git-author:
David Benjamin <davidben@mit.edu> (07/12/11 11:45:12)
git-committer:
David Benjamin <davidben@mit.edu> (07/16/11 00:31:32)
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

    rdde1b4d rc855755  
    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.