event/app: don't set default shm_id to PID

The env layer already understands that shm_id < 0 means that
multi-process is not enabled.  Leave shm_id defaulted to -1 so that
other code can detect when it is not set.

Change-Id: Ifd1667598d55c216f95f13561dc2a550677db5f4
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
Daniel Verkamp 2017-03-08 16:34:25 -07:00
parent 2f10ea11db
commit 427e90fea3

View File

@ -269,10 +269,6 @@ spdk_app_init(struct spdk_app_opts *opts)
}
}
if (opts->shm_id < 0) {
opts->shm_id = getpid();
}
memset(&g_spdk_app, 0, sizeof(g_spdk_app));
g_spdk_app.config = config;
g_spdk_app.shm_id = opts->shm_id;