Lines Matching refs:nset
156 prepare_child(sigset_t *nset, int infd, int outfd)
175 if (nset != NULL) {
177 if (sigismember(nset, i))
180 if (!sigismember(nset, SIGINT))
192 * "nset" contains the signals to ignore in the new process.
193 * SIGINT is enabled unless it's in "nset".
196 start_commandv(const char *cmd, sigset_t *nset, int infd, int outfd,
215 prepare_child(nset, infd, outfd);
225 start_command(const char *cmd, sigset_t *nset, int infd, int outfd, ...)
231 r = start_commandv(cmd, nset, infd, outfd, args);
242 sigset_t nset;
256 (void)sigemptyset(&nset);
259 pid = start_command(shellcmd, &nset, fd0, fd1, "-c", cmd, NULL);
314 sigset_t nset, oset;
317 (void)sigemptyset(&nset);
318 (void)sigaddset(&nset, SIGCHLD);
319 (void)sigprocmask(SIG_BLOCK, &nset, &oset);
355 sigset_t nset, oset;
363 (void)sigemptyset(&nset);
364 (void)sigaddset(&nset, SIGINT);
365 (void)sigaddset(&nset, SIGHUP);
366 (void)sigprocmask(SIG_BLOCK, &nset, &oset);
435 run_command(const char *cmd, sigset_t *nset, int infd, int outfd, ...)
470 pid = start_commandv(cmd, nset, infd, outfd, args);
514 sigset_t nset, oset;
516 (void)sigemptyset(&nset);
517 (void)sigaddset(&nset, SIGCHLD);
518 (void)sigprocmask(SIG_BLOCK, &nset, &oset);