Skip to content

Commit

Permalink
test/uring_cmd_ublk: check return value of daemon()
Browse files Browse the repository at this point in the history
Signed-off-by: Jens Axboe <axboe@kernel.dk>
  • Loading branch information
axboe committed Aug 30, 2024
1 parent 1c1a417 commit 0cbe72e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/uring_cmd_ublk.c
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,8 @@ static int ublk_start_daemon(struct ublk_dev *dev)
void *thread_ret;
const struct ublksrv_ctrl_dev_info *dinfo = &dev->dev_info;

daemon(1, 1);
if (daemon(1, 1) < 0)
return -errno;

ublk_dbg(UBLK_DBG_DEV, "%s enter\n", __func__);

Expand Down

0 comments on commit 0cbe72e

Please sign in to comment.