mirror of
https://github.com/KeyZox71/ft_minipowershell.git
synced 2025-03-15 03:16:51 +01:00
「🔨」 fix: fixed some things.
This commit is contained in:
@ -6,7 +6,7 @@
|
|||||||
/* By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ */
|
/* By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2024/06/01 14:55:06 by mmoussou #+# #+# */
|
/* Created: 2024/06/01 14:55:06 by mmoussou #+# #+# */
|
||||||
/* Updated: 2024/08/09 18:59:15 by mmoussou ### ########.fr */
|
/* Updated: 2024/08/12 16:24:11 by mmoussou ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
/* By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ */
|
/* By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2024/07/09 22:53:01 by adjoly #+# #+# */
|
/* Created: 2024/07/09 22:53:01 by adjoly #+# #+# */
|
||||||
/* Updated: 2024/08/01 16:38:54 by mmoussou ### ########.fr */
|
/* Updated: 2024/08/12 16:16:43 by mmoussou ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
@ -28,9 +28,9 @@ void __close(void *content, int fd1, int fd2)
|
|||||||
close(((t_cmd *)(content))->outfile);
|
close(((t_cmd *)(content))->outfile);
|
||||||
if (((t_cmd *)(content))->infile != STDIN_FILENO)
|
if (((t_cmd *)(content))->infile != STDIN_FILENO)
|
||||||
close(((t_cmd *)(content))->infile);
|
close(((t_cmd *)(content))->infile);
|
||||||
if (fd1)
|
if (fd1 != -1)
|
||||||
close(fd1);
|
close(fd1);
|
||||||
if (fd2)
|
if (fd2 != -1)
|
||||||
close(fd2);
|
close(fd2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user