summaryrefslogtreecommitdiffstats
path: root/src/m_minishell.c
diff options
context:
space:
mode:
authorjoe <rbousset@42lyon.fr>2020-12-01 16:12:02 +0100
committerjoe <rbousset@42lyon.fr>2020-12-01 16:12:02 +0100
commit214eae8a55bde34ca412084bebdb378a696152cc (patch)
tree70404f68b1b86035fe4835d8cf2da61dcefc5eba /src/m_minishell.c
parentNot quite done (diff)
download42-minishell-214eae8a55bde34ca412084bebdb378a696152cc.tar.gz
42-minishell-214eae8a55bde34ca412084bebdb378a696152cc.tar.bz2
42-minishell-214eae8a55bde34ca412084bebdb378a696152cc.tar.xz
42-minishell-214eae8a55bde34ca412084bebdb378a696152cc.tar.zst
42-minishell-214eae8a55bde34ca412084bebdb378a696152cc.zip
Bav
Diffstat (limited to 'src/m_minishell.c')
-rw-r--r--src/m_minishell.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/m_minishell.c b/src/m_minishell.c
index 6cd1f61..e5ec69e 100644
--- a/src/m_minishell.c
+++ b/src/m_minishell.c
@@ -32,11 +32,11 @@ int main(int argc, char *const argv[], char *const envp[])
ft_dprintf(STDERR_FILENO, "%s\n", strerror(errno));
return (M_RET_ALLOC);
}
- if (!isatty(STDIN_FILENO) || !isatty(STDOUT_FILENO))
- {
- ft_dprintf(STDERR_FILENO, "minishell: innapropriate ioctl device.\n");
- exit(1);
- }
+ /* if (!isatty(STDIN_FILENO) || !isatty(STDOUT_FILENO)) */
+ /* { */
+ /* ft_dprintf(STDERR_FILENO, "minishell: innapropriate ioctl device.\n"); */
+ /* exit(1); */
+ /* } */
ret = m_argv(argc, argv, msh);
s_destroy(msh);
return (ret);