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);
|
||||
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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user