]> git.itanic.dy.fi Git - rrdd/commit
rrdtool: Set up the correct executable name when running processes
authorTimo Kokkonen <timo.t.kokkonen@iki.fi>
Sun, 22 Apr 2012 18:46:42 +0000 (21:46 +0300)
committerTimo Kokkonen <timo.t.kokkonen@iki.fi>
Sun, 22 Apr 2012 18:46:42 +0000 (21:46 +0300)
commit304c9bf32419f1acf426397bfe923431319c9d79
tree1a00d3311f7cc9145a428892f7fe5a3afa3ecf9b
parentd937146d6ee5f5498d03e390c9adc3443826c937
rrdtool: Set up the correct executable name when running processes

The first argument, the name of the executable, should be set properly
prior running execv(). This ensures the process knows properly how it
was called. There might be a difference in case the process implements
multiple personalities based on the name it was called.

This does not appear to be the case with rrdtool as it was working
even if the executable name was left blank.

Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
rrdtool.c