INFO("exec-ing %s\n", *opts.jail_argv);
execve(*opts.jail_argv, opts.jail_argv, envp);
- //we get there only if execve fails
+ /* we get there only if execve fails */
ERROR("failed to execve %s: %s\n", *opts.jail_argv, strerror(errno));
exit(EXIT_FAILURE);
}
}
}
- //no <binary> param found
+ /* no <binary> param found */
if (argc - optind < 1) {
usage();
return EXIT_FAILURE;
}
if (jail_process.pid > 0) {
- //parent process
+ /* parent process */
uloop_process_add(&jail_process);
uloop_run();
uloop_done();
waitpid(jail_process.pid, NULL, 0);
}
} else if (jail_process.pid == 0) {
- //fork child process
+ /* fork child process */
return exec_jail();
} else {
ERROR("failed to clone/fork: %s\n", strerror(errno));