Changeset 19296 in vbox for trunk/src/VBox/Main
- Timestamp:
- May 1, 2009 4:56:44 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/xpcom/server.cpp
r19222 r19296 772 772 { 773 773 { "automate", no_argument, NULL, 'a' }, 774 # ifdef RT_OS_DARWIN774 # if defined(RT_OS_DARWIN) || defined(RT_OS_FREEBSD) 775 775 { "auto-shutdown", no_argument, NULL, 'A' }, 776 776 #endif 777 777 { "daemonize", no_argument, NULL, 'd' }, 778 778 { "pidfile", required_argument, NULL, 'p' }, 779 # ifdef RT_OS_DARWIN779 # if defined(RT_OS_DARWIN) || defined(RT_OS_FREEBSD) 780 780 { "pipe", required_argument, NULL, 'P' }, 781 781 #endif … … 806 806 } 807 807 808 # ifdef RT_OS_DARWIN808 # if defined(RT_OS_DARWIN) || defined(RT_OS_FREEBSD) 809 809 /* Used together with '-P', see below. Internal use only. */ 810 810 case 'A': … … 827 827 } 828 828 829 # ifdef RT_OS_DARWIN829 # if defined(RT_OS_DARWIN) || defined(RT_OS_FREEBSD) 830 830 /* we need to exec on darwin, this is just an internal 831 831 * hack for passing the pipe fd along to the final child. */ … … 933 933 close(daemon_pipe_fds[0]); 934 934 935 # if def RT_OS_DARWIN935 # if defined(RT_OS_DARWIN) || defined(RT_OS_FREEBSD) 936 936 /* 937 937 * On leopard we're no longer allowed to use some of the core API's … … 939 939 * So, we'll have to execv VBoxSVC once again and hand it the pipe 940 940 * and all other relevant options. 941 * 942 * On FreeBSD the fork approach doesn't work. The child fails 943 * during initialization of XPCOM for some unknown reason and 944 * exits making it impossible to autostart VBoxSVC when starting 945 * a frontend (debugger and strace don't contain any useful info). 941 946 */ 942 947 const char *apszArgs[7];
Note:
See TracChangeset
for help on using the changeset viewer.