Hi!
> In case we need do real test work in child porcess, it is OK for child process
> to use tst_resm(), tst_brkm() or tst_exit(). Parent process can use
> tst_record_childstatus() to make child process's test results propagated to 
> parent
> process correctly.
> 
> Meanwhile we reset T_exitval to 0 for child process in tst_fork(), which will
> make child process can record test results with tst_resm() or tst_brkm() 
> correctly.

Looks technically correct to me. The only caveat is that you have to
decide to use either tst_* interface in child or plain exit() and do not
to mix them.

Also as the code si now we don't have to reset the T_exitval because
what we do now is or the flags form child to add them to the paren't
flags (which will be set anyway if the child has started with nonzero
flags).

-- 
Cyril Hrubis
chru...@suse.cz

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to