Changeset 23064 in vbox
- Timestamp:
- Sep 16, 2009 12:07:11 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/apps/adpctl/VBoxNetAdpCtl.cpp
r23063 r23064 86 86 NULL /* terminator */ 87 87 }; 88 char * const envp[] = { (char*)"LC_ALL=C", NULL }; 88 89 int rc = EXIT_SUCCESS; 89 90 pid_t childPid = fork(); … … 95 96 break; 96 97 case 0: /* Child process. */ 97 /** @todo use execve like below? */ 98 if (execv(VBOXADPCTL_IFCONFIG_PATH, (char * const*)argv) == -1) 98 if (execve(VBOXADPCTL_IFCONFIG_PATH, (char * const*)argv, envp) == -1) 99 99 rc = EXIT_FAILURE; 100 100 break;
Note:
See TracChangeset
for help on using the changeset viewer.