VirtualBox

Changeset 6540 in vbox for trunk/src/libs


Ignore:
Timestamp:
Jan 28, 2008 8:16:24 PM (17 years ago)
Author:
vboxsync
Message:

redirect all standard file descriptors of VBoxXPCOMIPCD for proper daemonizing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/ipc/ipcd/daemon/src/ipcdUnix.cpp

    r3437 r6540  
    465465
    466466#ifdef VBOX
     467    /* redirect all standard file descriptors to /dev/null for daemonizing */
     468    PR_Close(PR_STDIN);
     469    PR_Open("/dev/null", O_RDONLY, 0);
     470    PR_Close(PR_STDOUT);
     471    PR_Open("/dev/null", O_WRONLY, 0);
     472    PR_Close(PR_STDERR);
     473    PR_Open("/dev/null", O_WRONLY, 0);
     474#endif
     475
     476#ifdef VBOX
    467477    successLevel = All;
    468478#endif
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