VirtualBox

Changeset 18281 in vbox


Ignore:
Timestamp:
Mar 25, 2009 8:30:31 PM (16 years ago)
Author:
vboxsync
Message:

FE/Qt4: don't leave zombies after starting a process with Process::singleShot()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxGlobal.h

    r17884 r18281  
    3737#include <QHash>
    3838
     39#ifdef Q_WS_X11
     40# include <sys/wait.h>
     41#endif
     42
    3943class QAction;
    4044class QLabel;
     
    227231            result = process.readAllStandardOutput();
    228232        process.setProcessState (QProcess::NotRunning);
     233#ifdef Q_WS_X11
     234        int status;
     235        waitpid(process.pid(), &status, 0);
     236#endif
    229237        return result;
    230238    }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette