Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

common/module.c: do not use strerror_r the GNU way. #12363

Merged
merged 1 commit into from Dec 30, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/common/module.c
Expand Up @@ -40,8 +40,9 @@ static int run_command(const char *command)

if (status < 0) {
char error_buf[80];
strerror_r(errno, error_buf, sizeof(error_buf));
fprintf(stderr, "couldn't run '%s': %s\n", command,
strerror_r(errno, error_buf, sizeof(error_buf)));
error_buf);
} else if (WIFSIGNALED(status)) {
fprintf(stderr, "'%s' killed by signal %d\n", command,
WTERMSIG(status));
Expand Down