1
0

correction fork

This commit is contained in:
Daniel Tartavel 2020-05-07 14:20:41 +02:00
parent 5e270d104b
commit 9bf19ae69f

4
main.c
View File

@ -246,14 +246,14 @@ int main()
perror(logfile);
return 7;
}
fprintf(fh1, "%s: Connexion de %s\n#%s# %s\n", date, user, cmd, cmdline);
fprintf(fh1, "%s: Connexion de %s commnade: %s %s", date, user, cmd, cmdline);
fclose(fh1);
}else if (id<0)
{
printf("erreur de création du fork: %s", str);
}else
{
//printf("%s\n", str);
printf("%s\n", str);
r = system( str );
exit (r);
}