From 2760ab1d51bdb69f5224a4ff3aa782153cc21da6 Mon Sep 17 00:00:00 2001 From: Jakub Adamski Date: Thu, 10 Jan 2019 14:09:37 +0100 Subject: [PATCH] exit --- Microshell/microshell.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Microshell/microshell.c b/Microshell/microshell.c index 8a9c9e9..0f01808 100644 --- a/Microshell/microshell.c +++ b/Microshell/microshell.c @@ -49,12 +49,9 @@ int main (){ break; else if (fork() == 0){ - ptintf("/n"); + printf("/n"); execvp(argv[0], argv); - } - else{ - wait(NULL); - printf("koniec komendy"); + exit(0); } } return 0;