VirtualBox

Changeset 33044 in vbox for trunk/src/VBox/Main/xpcom


Ignore:
Timestamp:
Oct 11, 2010 4:30:54 PM (14 years ago)
Author:
vboxsync
Message:

iprt/process: eliminate RTPROC_FLAGS_DAEMONIZE_DEPRECATED, rework starting a detached process on posix platforms and eliminate one useless fork(), avoid running

atexit functions in the temporary process

XPCOM: more detached process rework, block anything not going through IPRT, clos
e a few file descriptor inheritance leaks, and clean up the file descriptor pass
ing to VBoxXPCOMIPCD

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/xpcom/server.cpp

    r31872 r33044  
    10721072            /* now we're ready, signal the parent process */
    10731073            write(daemon_pipe_wr, "READY", strlen("READY"));
     1074            /* close writing end of the pipe, its job is done */
     1075            close(daemon_pipe_wr);
    10741076        }
    10751077        else
     
    11501152        RTFileDelete(g_pszPidFile);
    11511153
    1152     /* close writing end of the pipe as well */
    1153     if (daemon_pipe_wr >= 0)
    1154         close(daemon_pipe_wr);
    1155 
    11561154    return 0;
    11571155}
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