You also need to set procName to d->argv[0] in here