site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On 26 Mar 2009, at 11:33, Rohitash Panda wrote: Cheers, Chris _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... Hi, I am seeing an issue because of vm_protect being called from signal handlers, where another system call was already in progress.It works fine using mprotect. The mach call vm_protect() calls vm_map_protect() directly , whearas bsd syscall mprotect calls mach_vm_protect() which eventually calls vm_map_protect(). I guess vm_protect is avoiding some extra checks as compared to mprotect(). Which the preferred interface ? Has anyone heard of any issues with vm_protect ? The sigaction(2) man page has lists of functions that are considered safe for use in a signal handler. I don't see either vm_protect() or mprotect() in those lists :-( This email sent to site_archiver@lists.apple.com