mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
cleanup: update exec_cmd comment and error
Use log_sys_error for reporting error of system call. Fix comment for return value.
This commit is contained in:
parent
61e7dc833c
commit
b6437a6180
@ -64,7 +64,7 @@ int exec_cmd(struct cmd_context *cmd, const char *const argv[],
|
||||
log_verbose("Executing:%s", _verbose_args(argv, buf, sizeof(buf)));
|
||||
|
||||
if ((pid = fork()) == -1) {
|
||||
log_error("fork failed: %s", strerror(errno));
|
||||
log_sys_error("fork", "");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -32,7 +32,7 @@ struct cmd_context;
|
||||
* Note: You cannot synchronize devices within activation context.
|
||||
*
|
||||
* \return
|
||||
* 0 (success) or -1 (failure).
|
||||
* 1 (success) or 0 (failure).
|
||||
*/
|
||||
int exec_cmd(struct cmd_context *cmd, const char *const argv[],
|
||||
int *rstatus, int sync_needed);
|
||||
|
Loading…
x
Reference in New Issue
Block a user