kill(child_pid, SIGSTOP);
From: pc_newbie (ay_at_computermail.net)
Date: 10/08/03
- Next message: Grant Edwards: "Re: Raw serial output 3 signals"
- Previous message: Toni Van Remortel: "Re: Raw serial output 3 signals"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 09 Oct 2003 00:59:16 +1000
hi all, i am having the following problem:
1. parent process run forever in a while loop
2. and accept user to type in command use execvp() to execute user command
3. if process receives SIGSTOP while child process running on
foreground, i use kill(cpid, SIGSTOP); to stop child process,
the problem is that how can i redirect parent to tty to accecpt new user
command? after SIGSTOP is sent to child process, it stops both child and
parent, until SIGCONT is sent. HOW can just stop child process and let
parent process to continue to accept new command?
another problem is that, if i execute command with & and it was put in
background, and i tried to kill(cpid, SIGTTOU) and kill(cpid, SIGCONT),
but i can't bring it back to foreground, do you know how to do that?
thanks:)
- Next message: Grant Edwards: "Re: Raw serial output 3 signals"
- Previous message: Toni Van Remortel: "Re: Raw serial output 3 signals"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|