issue #82 quick fix, dont know if this is a good idea

This commit is contained in:
Jack Halford 2017-03-15 00:05:35 +01:00
parent 9cabd2fb2e
commit 4539837339
5 changed files with 7 additions and 6 deletions

View file

@ -6,7 +6,7 @@
/* By: jhalford <jack@crans.org> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/03/14 22:59:57 by jhalford #+# #+# */
/* Updated: 2017/03/14 22:59:57 by jhalford ### ########.fr */
/* Updated: 2017/03/14 23:25:30 by jhalford ### ########.fr */
/* */
/* ************************************************************************** */

View file

@ -6,7 +6,7 @@
/* By: jhalford <jack@crans.org> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/03/07 14:53:31 by jhalford #+# #+# */
/* Updated: 2017/03/14 22:34:06 by jhalford ### ########.fr */
/* Updated: 2017/03/14 23:30:54 by jhalford ### ########.fr */
/* */
/* ************************************************************************** */

View file

@ -6,7 +6,7 @@
/* By: jhalford <jack@crans.org> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/12/15 12:56:11 by jhalford #+# #+# */
/* Updated: 2017/03/13 14:53:33 by jhalford ### ########.fr */
/* Updated: 2017/03/14 23:43:00 by jhalford ### ########.fr */
/* */
/* ************************************************************************** */

View file

@ -6,7 +6,7 @@
/* By: jhalford <jack@crans.org> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/12/15 11:49:05 by jhalford #+# #+# */
/* Updated: 2017/03/13 17:36:32 by jhalford ### ########.fr */
/* Updated: 2017/03/14 23:43:12 by jhalford ### ########.fr */
/* */
/* ************************************************************************** */
@ -24,7 +24,8 @@ int job_wait(int id)
DG("job wait id=[%i], pgid=[%i]", id, j->pgid);
do
{
if ((pid = waitpid(-j->pgid, &status, WUNTRACED)) == -1)
if ((pid = waitpid(-j->pgid, &status, WUNTRACED)) == -1
&& errno != ECHILD)
ft_dprintf(2, "{red}%s: waitpid error errno=%i{eoc}\n", SHELL_NAME, errno);
DG("waitpid->[%d]", pid);
}

View file

@ -6,7 +6,7 @@
/* By: jhalford <jhalford@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/12/12 17:23:59 by jhalford #+# #+# */
/* Updated: 2017/03/14 22:21:28 by jhalford ### ########.fr */
/* Updated: 2017/03/14 23:25:40 by jhalford ### ########.fr */
/* */
/* ************************************************************************** */