correction fork
This commit is contained in:
parent
5e270d104b
commit
9bf19ae69f
4
main.c
4
main.c
@ -246,14 +246,14 @@ int main()
|
|||||||
perror(logfile);
|
perror(logfile);
|
||||||
return 7;
|
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);
|
fclose(fh1);
|
||||||
}else if (id<0)
|
}else if (id<0)
|
||||||
{
|
{
|
||||||
printf("erreur de création du fork: %s", str);
|
printf("erreur de création du fork: %s", str);
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
//printf("%s\n", str);
|
printf("%s\n", str);
|
||||||
r = system( str );
|
r = system( str );
|
||||||
exit (r);
|
exit (r);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user