]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
cron(8): convert vfork() usage to fork()
authorKyle Evans <kevans@FreeBSD.org>
Mon, 10 Feb 2020 02:40:23 +0000 (02:40 +0000)
committerKyle Evans <kevans@FreeBSD.org>
Mon, 10 Feb 2020 02:40:23 +0000 (02:40 +0000)
commit9b36723388048ad6c120166fbc200bc16eb6a001
treee2787d574a5017d29c4ddc35e796dfa1d4bf6637
parent9ce150463c33f422448febf56647a4370c7644c7
cron(8): convert vfork() usage to fork()

vfork() is error-prone, and the usage here definitely grew to not be
clearly OK given vfork-semantics; e.g. setusercontext(3) within the child.

Rip out vfork() and the rest of the references to it. fork is heavier, but
it's unclear that the difference will be all that obvious.

Reported by: Andrew Gierth and sigsys@gmail.com
usr.sbin/cron/cron/compat.h
usr.sbin/cron/cron/do_command.c
usr.sbin/cron/cron/externs.h
usr.sbin/cron/cron/popen.c
usr.sbin/cron/lib/compat.c