[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha6-1037-g193be43

Stefan (metze) Metzmacher metze at samba.org
Tue Feb 24 06:38:32 MST 2009


Hi Steven,

> @@ -966,6 +899,13 @@ bool reinit_after_fork(struct messaging_context *msg_ctx,
>  	 * numbers as each other */
>  	set_need_random_reseed();
>  
> +#ifdef WITH_MADVISE_PROTECTED
> +	/* Protect parent process from being killed by kernel when system
> +	 * memory is low.  Child processes can still be killed */
> +	if(!parent_longlived)
> +		madvise(NULL,0,MADV_PROTECT);
> +#endif
> +

I think that will still protect the child, I think we need to reset the
flag in the child, or does fork() auto resets it?

metze

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.samba.org/archive/samba-technical/attachments/20090224/19ba111a/signature.bin


More information about the samba-technical mailing list