[PATCH] Process adoption (2.4.9 sched.h/fork.c/exit.c)

Peter Lister (P.Lister@sychron.com)
Tue, 11 Sep 2001 20:36:17 +0100


This is a multipart MIME message.

--==_Exmh_9514203340
Content-Type: text/plain; charset=us-ascii

I attach a patch against 2.4.9 which implements process adoption. This
seems to be of general use; as searches of the kernel-traffic archives
have not thrown up anything similar, we'd like to contribute it. As
noted in http://www.tux.org/lkml/#s1-19, I'm cc'ing Alan Cox; just now
we're more interested in feedback from Alan and the list than immediate
acceptance by Linus. Should this prompt anyone to contribute a better
solution that Alan or Linus prefers, we're happy as long as it fixes the
daemon tracking problem. Useful feedback welcome: I'm sure there are
problems; please be gentle with a newbie contributor. :)

Functionality is similar to Solaris process lineage "orphan" fields,
though the terminology is changed, as noted in the patch to sched.h,
simply because the list includes processes which are NOT orphans. There
is no tainting by Solaris code - none of the authors have ever had
access to Solaris source.

Sychron uses this patch in kernels to support modules that track process
trees; primarily to find the grandparent of a daemon process, since this
is a common case which is hampered by the traditional behaviour that the
parent pid becomes 1 (init). With this patch, we can find who started
the original process. The existing parent pid logic is unchanged.

Before anyone comments - yes, I *do* know that there is no way to export
this information to user space. So far we haven't need to.

-- 
Peter Lister, Sychron Inc.  -  1-866-SYCHRON
Intelligent Infrastructure  -  www.sychron.com

--==_Exmh_9514203340 Content-Type: text/plain; name="patch.adoption"; charset=us-ascii Content-Description: patch.adoption Content-Transfer-Encoding: x-uuencode Content-Disposition: attachment; filename="patch.adoption"

begin 644 patch.adoption M26YD97@Z(&QI;G5X+T1O8W5M96YT871I;VXO0V]N9FEG=7)E+FAE;'`*/3T] M/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T] M/3T]/3T]/3T]/3T]/3T]/3T]/0I20U,@9FEL93H@+W5S97)S+W-Y8VAR;VXO M8W9S<F]O="]L:6YU>"]$;V-U;65N=&%T:6]N+T-O;F9I9W5R92YH96QP+'8* M<F5T<FEE=FEN9R!R979I<VEO;B`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:6]N+"!S<&5C:69I8V%L M;'D@36%U<F\@86YD($UC1&]U9V%L;`HK("H@(E-O;&%R:7,@26YT97)N86QS M(BP@*%-U;B!-:6-R;W-Y<W1E;7,@4')E<W,@+R!0<F5N=&EC92!(86QL($E3 M0DX**R`J(#`M,3,M,#(R-#DV+3`I"BL@*@HK("H@<%]N:W!T<B`@+2!.97AT M($]F($MI;CL@<')O8V5S<R=S(&-L;W-E<W0@;&EV:6YG(&%N8V5S=&]R"BL@ M*B!P7V%D<'1R("`M($%D;W!T960@1&5S8V5N9&5N=',@*'-E92!B96QO=RD* M*R`J('!?<&%S<'1R("T@4')E=FEO=7,@061O<'1E9"!3:6)L:6YG("AI;B!. M97AT($]F($MI;B=S($%$(&QI<W0I"BL@*B!P7VYA<W!T<B`M($YE>'0@061O M<'1E9"!3:6)L:6YG("AI;B!.97AT($]F($MI;B=S($%$(&QI<W0I"BL@*@HK M("H@5&AE<V4@9FEE;&1S(&%R92!U<V5D(&)Y('1H92!A8V-O;7!A;GEI;F<@ M8V]D92!P871C:&5S('1O"BL@*B!K97)N96PO>V9O<FLL97AI='TN8R!T;R!I M;7!L96UE;G0@<')O8V5S<R!A9&]P=&EO;B!I;B!A('-I;6EL87(**R`J('-T M>6QE('1O(%-U;B=S(%-O;&%R:7,N($]R<&AA;F5D('!R;V-E<W-E<R!A<F4@ M861O<'1E9"!B>2!T:&5I<@HK("H@8VQO<V5S="!S=7)V:79I;F<@86YC97-T M;W(L('=H97)E87,@=')A9&ET:6]N86P@52HJ6"!F=6YC=&EO;F%L:71Y"BL@ M*B`H<%]C<'1R+"!P7W!P='(L('!?>7-P='(L('!?;W-P='(I(&ES('1H870@ M;W)P:&%N('!R;V-E<W-E<R!A<F4**R`J(&%D;W!T960@8GD@:6YI="`H<&ED M(#$I+B`@5VET:"!D865M;VYS+"!T:&4@:6YI=&EA;"!P<F]C97-S(&5X:71S M"BL@*B!A;&UO<W0@:6UM961I871E;'D[(&UU8V@@8F5T=&5R(&EF('1H92!R M=6YN:6YG(&1A96UO;B!C86X@8F4@=')A8V5D"BL@*B!B86-K('1O('1H92!S M:&5L;"!W:&EC:"!I;G9O:V5D(&ET<R!P87)E;G0N"BL@*@HK("H@4V]L87)I M<R!E<75I=F%L96YT<R!A<F4N+BX**R`J('!?;FMP='(@(#T@;F5X=&]F:VEN M"BL@*B!P7V%D<'1R("`](&]R<&AA;@HK("H@<%]N87-P='(@/2!N97AT;W)P M:`HK("H@6R!P7W!A<W!T<B!H87,@;F\@4V]L87)I<R!E<75I=F%L96YT+"!A M<R!I=',@;&ES="!I<R!S:6YG;'D@;&EN:V5D(%T**R`J"BL@*B!P7V%D<'1R M(&ES(&$@<&]I;G1E<B!T;R!A(&1O=6)L>2UL:6YK960@;&ES="`H<VEM:6QA M<B!T;R!P7V-P='(I(&]F"BL@*B!T:&4@<')O8V5S<R=S(&1E<V-E;F1E;G1S M('=H:6-H(&AA=F4@;F\@;W1H97(@;F5X="!O9B!K:6XN(%1H92!L:7-T"BL@ M*B!I;F-L=61E<R!T:&4@<')O8V5S<R=S(&]W;B!C:&EL9')E;B`H9'5P;&EC M871I;F<@=&AE('!?8W!T<B!L:7-T*2P**R`J(&%N9"!O<G!H86YE9"!G<F%N M9&-H:6QD<F5N(&%D;W!T960@=VAE;B!A(&-H:6QD(&1I960N("!3;VQA<FES M)W,**R`J(")N97AT;V9K:6XB('-E96US(&$@<F5A<V]N86)L92!T97)M("T@ M;VYE(&ES(&YE>'0@;V8@:VEN('1O(&]N92=S"BL@*B!O=VX@8VAI;&1R96X@ M87,@=V5L;"!A<R!T:&]S92!O;F4@861O<'1S+B!(;W=E=F5R+"!3;VQA<FES M)W,**R`J(")O<G!H86XB(&ES(&IU<W0@<&QA:6X@=W)O;F<@+2!O;F4G<R!O M=VX@8VAI;&1R96X@87)E(&-L96%R;'D@;F]T"BL@*B!O<G!H86YS('=H:6QE M(&]N92!L:79E<RX@(")$97-C96YD96YT(B!S965M<R!E<75A;&QY('=R;VYG M+"!S:6YC90HK("H@9W)A;F1C:&EL9')E;B!W:71H(')U;FYI;F<@<&%R96YT M<R!A<F4@9&5S8V5N9&5N=',@*&%S(&%R92`J=&AE:7(J"BL@*B!D97-C96YD M96YT<RDL(&)U="!C;&5A<FQY('-H;W5L9"!N;W0@8F4@:6X@=&AI<R!L:7-T M+B!792!U<V4**R`J(")!9&]P=&5D($1E<V-E;F1E;G1S(B`H041S*3L@:68@ M<F5G87)D:6YG(&]N92=S(&]W;B!C:&EL9')E;B!A<PHK("H@(F%D;W!T960B M('-E96US(&]D9"P@8V]N<VED97(@=&AE;2!I;7!L:6-I=&QY(&%D;W!T960@ M870@8FER=&@@87,**R`J(&1I<W1I;F-T(&9R;VT@;W)P:&%N960@9W)A;F1C M:&EL9')E;B!E>'!L:6-I=&QY(&%D;W!T960@;&%T97(N"BL@*@HK("H@<%]P M87-P='(@86YD('!?;F%S<'1R(&1O(&YO="!H879E('1H92!S86UE('EO=6YG M97(@86YD(&]L9&5R"BL@*B!S96UA;G1I8W,@87,@<%]Y<W!T<B!A;F0@<%]O M<W!T<BX@4&]S:71I;VX@:6X@=&AE(&QI<W0@<F5F;&5C=',**R`J('=H96X@ M=&AE:7(@<&%R96YT(&1I960L(&YO="!T:&5I<B!C<F5A=&EO;B!T:6UE+"!S M;R!T:&5Y(&%R90HK("H@<F5F97)R960@=&\@87,@<')E=FEO=7,@86YD(&YE M>'0@=&\@9&ES8V]U<F%G92!A<W-U;7!T:6]N<R!A8F]U=`HK("H@86=E(&]R M9&5R+B!P7V%D<'1R('!O:6YT<R!T;R!T:&4@;6]S="!R96-E;G1L>2!A9&]P M=&5D('!R;V-E<W,[('1H90HK("H@;&ES="!I<R!T<F%V97)S960@=FEA('!? M;F%S<'1R+"!S;R!T:&4@(FYE>'0B(&%D;W!T960@<VEB;&EN9R!W87,**R`J M(&%D;W!T960@*F)E9F]R92H@:71S('!R961E8V5S<V]R+"!L:6ME('1H92!3 M;VQA<FES(&YE>'1O<G!H(&]R9&5R+@HK("H**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F,L=@IR971R:65V:6YG(')E=FES:6]N(#$N,2XR+C<*<F5T<FEE M=FEN9R!R979I<VEO;B`Q+C$N,BXW+C(N,0ID:69F("UU("UR,2XQ+C(N-R`M M<C$N,2XR+C<N,BXQ"BTM+2!L:6YU>"]K97)N96PO9F]R:RYC"3(P,#$O,#@O M,38@,3@Z,S<Z,C`),2XQ+C(N-PHK*RL@;&EN=7@O:V5R;F5L+V9O<FLN8PDR M,#`Q+S`X+S(T(#$U.C(Y.C(T"3$N,2XR+C<N,BXQ"D!`("TV,3`L-B`K-C$P M+#$X($!`"B`)<"T^<G5N7VQI<W0N<')E=B`]($Y53$P["B`*(`EP+3YP7V-P M='(@/2!.54Q,.PHK(VEF9&5F($-/3D9)1U]04D]#15-37T%$3U!424]."BL) M+RH@4%)/0T534R!!1$]05$E/3B!C;V1E($-O<'ER:6=H="!3>6-H<F]N($EN M8RX@,C`P,2`M('=W=RYS>6-H<F]N+F-O;2`J+PHK"2\J(%!L96%S92!S964@ M:6YC;'5D92]L:6YU>"]S8VAE9"YH("HO"BL**PEP+3YP7VYK<'1R("`](&-U M<G)E;G0[("`@("`@("`@("`@+RH@0W5R<F5N="!I<R!T:&4@;F5W(&-H:6QD M)W,@;F5X="!O9B!K:6X@("`@("`@("`@("`@("`@("`@("`J+PHK"7`M/G!? M861P='(@(#T@3E5,3#L@("`@("`@("`@("`@("`O*B!4:&4@;F5W(&-H:6QD M(&AA<R!N;R!!9&]P=&5D($1E<V-E;F1E;G1S("`@("`@("`@("`@("`@("`@ M("HO"BL)<"T^<%]P87-P='(@/2!.54Q,.R`@("`@("`@("`@("`@("\J(%1H M92!N97<@8VAI;&0@:7,@9FER<W0@:6X@=&AE($%$(&QI<W0@*&YO('!R961E M8V5S<V]R<RD@("`@*B\**R`@("`@("`)<"T^<%]N87-P='(@/2!C=7)R96YT M+3YP7V%D<'1R.R`@("\J(%1H92!N97<@8VAI;&0G<R!S=6-C97-S;W(@:7,@ M=&AE(&AE860@;V8@8W5R<F5N="=S($%$(&QI<W0@*B\**PEI9B`H8W5R<F5N M="T^<%]A9'!T<BD@("`@("`@("`@("`@+RH@268@8W5R<F5N="!H87,@86X@ M97AI<W1I;F<@040@;&ES="P@("`@("`@("`@("`@("`@("`@("`@("`J+PHK M"0EC=7)R96YT+3YP7V%D<'1R+3YP7W!A<W!T<B`]('`[("\J("!T:&4@;F5W M(&-H:6QD(&)E8V]M97,@:71S('!R961E8V5S<V]R("`@("`@("`@("`@("`@ M*B\**PEC=7)R96YT+3YP7V%D<'1R(#T@<#L@("`@("`@("`@("`@+RH@5&AE M(&YE=R!C:&EL9"!B96-O;65S('1H92!H96%D(&]F(&-U<G)E;G0G<R!!1"!L M:7-T("`@("`@("`J+PHK(V5N9&EF"B`):6YI=%]W86ET<75E=65?:&5A9"@F M<"T^=V%I=%]C:&QD97AI="D["B`)<"T^=F9O<FM?9&]N92`]($Y53$P["B`) A:68@*&-L;VYE7V9L86=S("8@0TQ/3D5?5D9/4DLI('L* ` end

--==_Exmh_9514203340 Content-Type: text/plain ; name="README.adoption"; charset=us-ascii Content-Description: README.adoption Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="README.adoption"

The accompanying patch is Copyright Sychron 2001

This patch implements process adoption; fields have been added to the task structure and logic to the process creation/destruction (fork and exit) functions to maintain a link to each process's nearest living ancestor.

The traditional behaviour of the parent pid (set to 1 when the parent dies) does not cope with daemons which outlive their (short lived) parents.

Refer the annotation in sched.h for details.

Peter Lister p.lister@sychron.com 11-Sep-2001

--==_Exmh_9514203340--

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/