Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -244,20 +244,6 @@ else
conf.set('fallthrough', 'do {} while (0) /* fallthrough */')
endif

if cc.has_function('TEMP_FAILURE_RETRY', prefix : '#include <errno.h>')
conf.set('TFR', 'TEMP_FAILURE_RETRY')
else
conf.set('TFR(exp)', ''' \
({ \
long int __result = 0; \
do { \
__result = (long int)(exp); \
} while ((__result == -1) && (errno == EINTR)); \
__result; \
})
''')
endif

################################################################################
substs = configuration_data()
substs.set('NAME', meson.project_name())
Expand Down
2 changes: 1 addition & 1 deletion src/nvme/fabrics.c
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ static int __nvmf_add_ctrl(nvme_root_t r, const char *argstr)

nvme_msg(r, LOG_DEBUG, "connect ctrl, '%.*s'\n",
(int)strcspn(argstr,"\n"), argstr);
ret = TFR(write(fd, argstr, len));
ret = write(fd, argstr, len);
if (ret != len) {
nvme_msg(r, LOG_INFO, "Failed to write to %s: %s\n",
nvmf_dev, strerror(errno));
Expand Down