Searched refs:null_fd (Results 1 – 2 of 2) sorted by relevance
34 int child_pid, child_status, ret, null_fd; in run_set_secureexec() local38 null_fd = open("/dev/null", O_WRONLY); in run_set_secureexec()39 if (null_fd == -1) in run_set_secureexec()41 dup2(null_fd, STDOUT_FILENO); in run_set_secureexec()42 dup2(null_fd, STDERR_FILENO); in run_set_secureexec()43 close(null_fd); in run_set_secureexec()
29 int null_fd; in run_self_unlink() local33 null_fd = open("/dev/null", O_WRONLY); in run_self_unlink()34 dup2(null_fd, STDOUT_FILENO); in run_self_unlink()35 dup2(null_fd, STDERR_FILENO); in run_self_unlink()36 close(null_fd); in run_self_unlink()