Searched refs:null_fd (Results 1 – 2 of 2) sorted by relevance
42 int child_pid, child_status, ret, null_fd; in run_set_secureexec() local46 null_fd = open("/dev/null", O_WRONLY); in run_set_secureexec()47 if (null_fd == -1) in run_set_secureexec()49 dup2(null_fd, STDOUT_FILENO); in run_set_secureexec()50 dup2(null_fd, STDERR_FILENO); in run_set_secureexec()51 close(null_fd); in run_set_secureexec()
43 int null_fd; in run_self_unlink() local47 null_fd = open("/dev/null", O_WRONLY); in run_self_unlink()48 dup2(null_fd, STDOUT_FILENO); in run_self_unlink()49 dup2(null_fd, STDERR_FILENO); in run_self_unlink()50 close(null_fd); in run_self_unlink()