javais tue un kill a ne pas tuer
This commit is contained in:
parent
18f847e446
commit
6178f84af4
1 changed files with 6 additions and 1 deletions
|
|
@ -6,7 +6,7 @@
|
|||
/* By: jhalford <jhalford@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2016/12/13 14:58:36 by jhalford #+# #+# */
|
||||
/* Updated: 2017/03/24 17:24:24 by gwojda ### ########.fr */
|
||||
/* Updated: 2017/03/24 17:26:50 by gwojda ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -20,7 +20,12 @@ int put_job_in_foreground(t_job *j, int cont)
|
|||
if (SH_IS_INTERACTIVE(data_singleton()->opts))
|
||||
tcsetpgrp(STDIN, j->pgid);
|
||||
if (cont)
|
||||
{
|
||||
tcsetattr(STDIN, TCSADRAIN, &j->tmodes);
|
||||
if (kill(-j->pgid, SIGCONT) < 0)
|
||||
DG("kill(SIGCONT) failed");
|
||||
//msg d'erreur a changer ici
|
||||
}
|
||||
job_wait(j->id);
|
||||
if (SH_IS_INTERACTIVE(data_singleton()->opts))
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue