consolidate grub_util_exec code
We need to hide "modprobe efivars" error output to avoid confusion. So consolidate grub_util_exec_* into single function that can optionally redirect all three standard descriptors and make all other functions compatibility wrappers. Also remove include/grub/osdep/exec_unix.h which does not appear to be used anywhere.
This commit is contained in:
parent
316c8d9a18
commit
396311f0f6
3 changed files with 71 additions and 111 deletions
|
@ -28,6 +28,9 @@ grub_util_exec_pipe (const char *const *argv, int *fd);
|
|||
pid_t
|
||||
grub_util_exec_pipe_stderr (const char *const *argv, int *fd);
|
||||
|
||||
int
|
||||
grub_util_exec_redirect_all (const char *const *argv, const char *stdin_file,
|
||||
const char *stdout_file, const char *stderr_file);
|
||||
int
|
||||
grub_util_exec (const char *const *argv);
|
||||
int
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue