1
0
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:
Zdenek Kabelac 2013-08-06 14:26:00 +02:00
parent 61e7dc833c
commit b6437a6180
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -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);