X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fsvm%2Fsvm.c;h=7d98fbe936d74d72a89f422dae92b4bc8c5306ed;hb=c4f2ef7d7e315e183e3994630209471c5362163a;hp=afba54e74fcf8377ed7f2a81111993587fb8d2c3;hpb=c0c919c6fa721a564a08b367b839efc802d4c963;p=vpp.git diff --git a/src/svm/svm.c b/src/svm/svm.c index afba54e74fc..7d98fbe936d 100644 --- a/src/svm/svm.c +++ b/src/svm/svm.c @@ -652,6 +652,10 @@ svm_map_region (svm_map_region_args_t * a) return (0); } + /* Reset ownership in case the client started first */ + if (fchown (svm_fd, a->uid, a->gid) < 0) + clib_unix_warning ("segment chown [ok if client starts first]"); + time_left = 20; while (1) {