add int(xx) for rm warning in g++
mv pidfile from global_define into Daemon's construction argv