Selon exec reference, les appels à exec (ou stack vararg fonctions en général) nécessite un (char*)NULL
aka 0 à la fin de la liste des paramètres. GCC, cependant, se plaint du code suivantpas assez de variables pour s'adapter à une sentinelle
char cmdFullPath[4096]; //yes this 4096 thing is bad coding practice
...
execl(cmdFullPath, (char*)NULL);
//warning: not enough variable arguments to fit a sentinel
Quelqu'un sait ce qui ne va pas?
double possible: http://stackoverflow.com/questions/2050961/is-argv0-name-of-executable-an-accepted-standard-or-just-a-common-conventio –