added function name in log
This commit is contained in:
parent
a4b85fa73c
commit
a05861c83f
6
main.c
6
main.c
@ -631,15 +631,9 @@ int main()
|
|||||||
sprintf(strlog, "erreur de création du fork: %s", str);
|
sprintf(strlog, "erreur de création du fork: %s", str);
|
||||||
printlog(strlog, WARNING, 0);
|
printlog(strlog, WARNING, 0);
|
||||||
}else if (id == 0)
|
}else if (id == 0)
|
||||||
{
|
|
||||||
if (cfg.commande[0] != 0)
|
|
||||||
{
|
{
|
||||||
printlog(str, INFO, 0);
|
printlog(str, INFO, 0);
|
||||||
r = system( str );
|
r = system( str );
|
||||||
}else
|
|
||||||
{
|
|
||||||
printlog("no command defined: no command launched", WARNING, 0);
|
|
||||||
}
|
|
||||||
exit(r);
|
exit(r);
|
||||||
}
|
}
|
||||||
}else
|
}else
|
||||||
|
Reference in New Issue
Block a user