Submitting sandboxed MonoMac app without accessing shared memory?

亡梦爱人 提交于 2019-12-10 17:14:05

问题


I have a Sandboxed MonoMac based application in the MacAppStore, with the latest update to the app pushed to MAS I received a message from Apple that the application accesses /dev/shm, and that this update will be allowed but future updates must not access /dev/shm. I'm not using any shared memory in my application so I'm assuming this is because parts of MonoMac is using Shared memory (which would make sense). How can I possibly work around this in the future?


回答1:


The shared memory access is caused by the initialization of the performance counters when the /dev/shm folder is probed. An environment variable named MONO_DISABLE_SHARED_AREA has been introduced to avoid this. See the mono-mmap.c source file to learn more about it.

Update: A bug on this variable has been fixed in the 3.0 series.



来源:https://stackoverflow.com/questions/14535456/submitting-sandboxed-monomac-app-without-accessing-shared-memory

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!