[LTP] [PATCH 1/5] syscalls/flock01: Rewrite to new library

Jan Stancek jstancek@redhat.com
Thu Aug 2 13:03:32 CEST 2018


----- Original Message -----
> Signed-off-by: Jinhui huang <huangjh.jy@cn.fujitsu.com>
> ---
>  testcases/kernel/syscalls/flock/flock01.c | 186
>  ++++++------------------------
>  1 file changed, 35 insertions(+), 151 deletions(-)

ACK

Just a nit:
        if (fd > 0)
                SAFE_CLOSE(fd);

fd == 0 can also be valid fd, but skipping this close would
be fine anyway. (no need to repost)

Regards,
Jan


More information about the ltp mailing list