How change process flags from userland?
pluknet
pluknet at gmail.com
Wed Jun 30 07:33:17 UTC 2010
On 30 June 2010 10:26, Andrey Zonov <andrey.zonov at gmail.com> wrote:
> Hi,
>
> I want to set P_PROTECTED flag for some daemons after it start, without
> patching application and kernel.
> It possible?
>
May be madvise(NULL, 0, MADV_PROTECT) will fit your needs?
(see howto example in usr.sbin/cron).
Note, this behav isn't portable.
--
wbr,
pluknet
More information about the freebsd-hackers
mailing list