pub mod flog_safe;
pub mod postfork;
#[cfg(have_posix_spawn)]
pub mod spawn;
use crate::proc::Job;
use libc::{SIGINT, SIGQUIT};
pub fn blocked_signals_for_job(job: &Job, sigmask: &mut libc::sigset_t) -> bool {
if !job.is_foreground() && !job.wants_job_control() {
unsafe {
libc::sigaddset(sigmask, SIGINT);
libc::sigaddset(sigmask, SIGQUIT);
}
return true;
}
false
}
#[cfg(not(target_os = "android"))]
pub static PATH_BSHELL: &[u8] = b"/bin/sh\0";
#[cfg(target_os = "android")]
pub static PATH_BSHELL: &[u8] = b"/system/bin/sh\0";