- exec_context_init(&context);
- r = exec_spawn(&command, NULL, &context, NULL, 0, NULL, false, false, false, false, NULL, &pid);
- exec_context_done(&context);
-
- if (r < 0)
- return r;
-
- if ((r = wait_for_terminate(pid, &status)) < 0)
- return -errno;
-
- if (status.si_code == CLD_EXITED) {
- if (status.si_status != 0) {
- log_warning("/sbin/modprobe failed with error code %i.", status.si_status);
- return -EPROTO;