[LTP] [PATCH 2/3] syscalls/alarm03: Rewrite to new library

Cyril Hrubis chrubis@suse.cz
Wed Jul 25 16:52:24 CEST 2018


Hi!
> > -	tst_sig(FORK, DEF_HANDLER, cleanup);
> > -
> > -	signal(SIGALRM, trapper);
> > -
> > -	TEST_PAUSE;
> > +	SAFE_SIGNAL(SIGALRM, sighandler);
> 
> I do wonder why do we call the SAFE_SIGNAL() here?
> 
> It does not make much sense.

Actually why we are even installing the signal handler, we do not wait
for the alarm to fire anyways.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list