[LTP] [PATCH 1/2] lib: move create_sig_proc() into newlib

Cyril Hrubis chrubis@suse.cz
Tue Nov 22 09:02:27 CET 2016


Hi!
> > Shouldn't be including tst_safe_macros.h here enough?
> Well, create_sig_proc() uses SAFE_FORK macro (defined in tst_test.h), which uses (via
> safe_fork() function) tst_test structure (also defined in tst_test.h). That's probably the
> reason, why SAFE_FORK isn't in tst_safe_macros.h among with other SAFE_* macros.
> So I'd keep it as it is.

Ah, right, the SAFE_FORK() is special since we have do make sure stdio
is flushed before we call fork, etc.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list