Skip to content

Commit 3f67fea

Browse files
authored
Merge pull request #6129 from computezrmle/cleanup_launch_vboxsvc_associated_code
Cleanup 'launch_vboxsvc' associated code
2 parents 8d62709 + fe2b822 commit 3f67fea

File tree

3 files changed

+0
-16
lines changed

3 files changed

+0
-16
lines changed

samples/vboxwrapper/vbox_common.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,9 @@ VBOX_BASE::VBOX_BASE() : VBOX_JOB() {
107107
headless = true;
108108
log_pointer = 0;
109109
vm_pid = 0;
110-
vboxsvc_pid = 0;
111110

112111
#ifdef _WIN32
113112
vm_pid_handle = 0;
114-
vboxsvc_pid_handle = 0;
115113
#endif
116114
}
117115

@@ -126,10 +124,6 @@ VBOX_BASE::~VBOX_BASE() {
126124
CloseHandle(vm_pid_handle);
127125
vm_pid_handle = NULL;
128126
}
129-
if (vboxsvc_pid_handle) {
130-
CloseHandle(vboxsvc_pid_handle);
131-
vboxsvc_pid_handle = NULL;
132-
}
133127
#endif
134128
}
135129

samples/vboxwrapper/vbox_common.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ struct VBOX_BASE : VBOX_JOB {
163163
std::streamoff log_pointer;
164164

165165
int vm_pid;
166-
int vboxsvc_pid;
167166
#ifdef _WIN32
168167
// the handle to the process for the VM
169168
// NOTE: we get a handle to the pid right after we parse it from the
@@ -172,9 +171,6 @@ struct VBOX_BASE : VBOX_JOB {
172171
// handle to the process, the OS is free to reuse the pid for some other
173172
// executable.
174173
HANDLE vm_pid_handle;
175-
176-
// the handle to the vboxsvc process created by us in the sandbox'ed environment
177-
HANDLE vboxsvc_pid_handle;
178174
#endif
179175

180176
void dump_vmguestlog_entries();

samples/vboxwrapper/vbox_vboxmanage.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1131,9 +1131,6 @@ int VBOX_VM::poll(bool log_state) {
11311131
// Is our environment still sane?
11321132
//
11331133
#ifdef _WIN32
1134-
if (aid.using_sandbox && vboxsvc_pid_handle && !process_exists(vboxsvc_pid_handle)) {
1135-
vboxlog_msg("Status Report: vboxsvc.exe is no longer running.");
1136-
}
11371134
if (started_successfully && vm_pid_handle && !process_exists(vm_pid_handle)) {
11381135
vboxlog_msg("Status Report: virtualbox.exe/vboxheadless.exe is no longer running.");
11391136
}
@@ -1258,9 +1255,6 @@ int VBOX_VM::poll2(bool log_state) {
12581255
// Is our environment still sane?
12591256
//
12601257
#ifdef _WIN32
1261-
if (aid.using_sandbox && vboxsvc_pid_handle && !process_exists(vboxsvc_pid_handle)) {
1262-
vboxlog_msg("Status Report: vboxsvc.exe is no longer running.");
1263-
}
12641258
if (started_successfully && vm_pid_handle && !process_exists(vm_pid_handle)) {
12651259
vboxlog_msg("Status Report: virtualbox.exe/vboxheadless.exe is no longer running.");
12661260
}

0 commit comments

Comments
 (0)