Commit a013d663 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Don't bail om msync(2) for now, it's probably alignment issues.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3934 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent d260c72f
...@@ -177,12 +177,13 @@ fprintf(stderr, "CreateSign(%jx, %jx, %s)\n", ...@@ -177,12 +177,13 @@ fprintf(stderr, "CreateSign(%jx, %jx, %s)\n",
static void static void
smp_sync_sign(const struct smp_sc *sc, uint64_t adr, uint64_t len) smp_sync_sign(const struct smp_sc *sc, uint64_t adr, uint64_t len)
{ {
int i;
AZ(adr & 0x7); /* Enforce alignment */ AZ(adr & 0x7); /* Enforce alignment */
AZ(msync(sc->ptr + adr, i = msync(sc->ptr + adr,
sizeof(struct smp_sign) + len + SHA256_LEN, MS_SYNC)); sizeof(struct smp_sign) + len + SHA256_LEN, MS_SYNC);
fprintf(stderr, "SyncSign(%jx, %jx)\n", adr, len); fprintf(stderr, "SyncSign(%jx, %jx) = %d %s\n", adr, len, i, strerror(errno));
} }
/*-------------------------------------------------------------------- /*--------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment