[LTP] [PATCH v2] rt_sigqueueinfo02: Add negative tests for rt_sigqueueinfo

Xinjian Ma (Fujitsu) maxj.fnst@fujitsu.com
Thu Oct 10 07:55:58 CEST 2024


Hi

> Hi!
> > +static void child_do(void)
> > +{
> > +	TST_CHECKPOINT_WAKE(0);
> > +	TST_CHECKPOINT_WAIT(1);
> 
> This still has the wake/wait pair in here. Why?
> 
> As I said preivously I do not see why the child needs to signal the parent if all the
> parent needs is the child to exist.

Oh sorry, I think I totally get your point now.
I sent the v3 patch. PTAL.

Best regards
Ma
> 
> So the child can just wait here for the parent to wake it up.
> 
> Or we do not have to use the checkpoints at all, the child can just do pause();
> and parent can kill() it once it's done.
> 
> --
> Cyril Hrubis
> chrubis@suse.cz


More information about the ltp mailing list