summaryrefslogtreecommitdiffstats
path: root/regress/sys/kern/exec_self
AgeCommit message (Collapse)AuthorFilesLines
2016-03-17Last parameter to execl[e]() functions *must* be cast to a pointer.krw1-2/+2
Just NULL is not good practise as NULL is theoretically allowed to be an integer rather than a pointer. Use (char *)NULL consistently instead of scattering a few (char *)0 and (void *)NULL into the mix. Prompted by and probably ok deraadt@ millert@ kettenis@ Definitely ok mestre@ ratchov@
2002-08-17Test for a nasty complication in the exec code.art2-0/+49
What happens is that if an executable tries to exec itself (happens all the time on the ramdisk, among others) and needs to page in a page from the data segment (or rodata) it will need to perform a pagein operation on the vnode that's execing right now. exec keeps that vnode locked and fails (no deadlock, that part was fixed a long time ago).