Changeset 19796 in vbox
- Timestamp:
- May 18, 2009 3:28:42 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/cbinding/tstXPCOMCCall.c
r19768 r19796 349 349 */ 350 350 PRInt32 fd; 351 int ret; 351 352 352 353 printf("Entering event loop, PowerOff the machine to exit or press Ctrl-C to terminate\n"); … … 359 360 while (!g_fStop) 360 361 { 361 struct pollfd pfd; 362 struct pollfd pfd; 363 362 364 pfd.fd = fd; 363 365 pfd.events = POLLIN | POLLERR | POLLHUP; 364 366 pfd.revents = 0; 365 poll(&pfd, 1, 250); 366 rc = queue->vtbl->ProcessPendingEvents(queue); 367 368 ret = poll(&pfd, 1, 250); 369 370 if (ret <= 0) 371 continue; 372 373 if (pfd.revents & POLLHUP) 374 g_fStop = 1; 375 376 queue->vtbl->ProcessPendingEvents(queue); 367 377 } 368 378 }
Note:
See TracChangeset
for help on using the changeset viewer.