* with SIGTTOU while the command continues to run.
*/
sigaction_t sa, osa;
- pid_t saved_pgrp = (pid_t)-1;
+ pid_t saved_pgrp = -1;
int signo = WSTOPSIG(status);
int fd = open(_PATH_TTY, O_RDWR|O_NOCTTY, 0);
if (fd != -1) {
*/
if (s != SIGCHLD && USER_SIGNALED(info) && info->si_pid != 0) {
pid_t si_pgrp = getpgid(info->si_pid);
- if (si_pgrp != (pid_t)-1) {
+ if (si_pgrp != -1) {
if (si_pgrp == ppgrp || si_pgrp == cmnd_pid)
return;
} else if (info->si_pid == cmnd_pid) {
return;
if (info->si_pid != 0) {
pid_t si_pgrp = getpgid(info->si_pid);
- if (si_pgrp != (pid_t)-1) {
+ if (si_pgrp != -1) {
if (si_pgrp == ppgrp || si_pgrp == cmnd_pid)
return;
} else if (info->si_pid == cmnd_pid) {
*/
if (s != SIGCHLD && USER_SIGNALED(info) && info->si_pid != 0) {
pid_t si_pgrp = getpgid(info->si_pid);
- if (si_pgrp != (pid_t)-1) {
+ if (si_pgrp != -1) {
if (si_pgrp == cmnd_pgrp)
return;
} else if (info->si_pid == cmnd_pid) {
ud->pid = getpid();
ud->ppid = getppid();
ud->pgid = getpgid(0);
- ud->tcpgid = (pid_t)-1;
+ ud->tcpgid = -1;
fd = open(_PATH_TTY, O_RDWR|O_NOCTTY|O_NONBLOCK, 0);
if (fd != -1) {
ud->tcpgid = tcgetpgrp(fd);