"-v be verbose",
"-f force reducing of metadata integrity",
"--full-balance do not print warning and do not delay start",
- "--background run the balance as a background process",
+ "--background|--bg",
+ " run the balance as a background process",
NULL
};
GETOPT_VAL_FULL_BALANCE },
{ "background", no_argument, NULL,
GETOPT_VAL_BACKGROUND },
+ { "bg", no_argument, NULL, GETOPT_VAL_BACKGROUND },
{ NULL, 0, NULL, 0 }
};
"unable to fork to run balance in background");
exit(1);
case (0):
- chdir("/");
+ /*
+ * Read the return value to silence compiler
+ * warning. Change to / should succeed and
+ * we're not in a security-sensitive context.
+ */
+ i = chdir("/");
close(0);
close(1);
close(2);