[LTP] [PATCH v2 4/5] ipc/msgget02.c: reconstruct && convert to new API

Cyril Hrubis chrubis@suse.cz
Mon Dec 12 17:17:51 CET 2016


Hi!
> +static void cleanup(void)
>  {
> -	/* if it exists, remove the message queue that was created. */
>  	rm_queue(msg_q_1);
>  
> -	tst_rmdir();
> -
> +	msg_q_1 = -1;

Here again, no need to reset the msg_q_1 to -1, otherwise it looks good.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list