I'm working on a multi-threaded proxy server and I keep getting a permission denied error when I call execl as follows:
execl(CHILD_PATH, CMD, (char*)rdy, (char*)NULL);
I define the path and program name at the beginning of my program as follows:
#define CHILD_PATH "./"
#define CMD "child"
rdy is an arguments and I terminate it with (char*)NULL. I've been trying to figure out what's wrong for close to 2 hours now and it's driving me crazy. Does anyone have any ides as to what is going wrong here?