Changeset 6139 in vbox for trunk/src/VBox/Additions/common
- Timestamp:
- Dec 18, 2007 5:11:45 PM (17 years ago)
- Location:
- trunk/src/VBox/Additions/common/VBoxService
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/Makefile.kmk
r6132 r6139 39 39 $(VBOX_LIB_VBGL_R3) \ 40 40 $(VBOX_LIB_IPRT_GUEST_R3) 41 VBoxService_LIBS.solaris = daemon41 #VBoxService_LIBS.solaris = daemon 42 42 43 43 include $(PATH_KBUILD)/subfooter.kmk -
trunk/src/VBox/Additions/common/VBoxService/VBoxService-solaris.cpp
r6132 r6139 26 26 #include <signal.h> 27 27 #include <fcntl.h> 28 #ifdef USE_LIBDAEMON 28 29 #include <libdaemon/dfork.h> 29 30 #include <libdaemon/dsignal.h> 31 #endif 30 32 31 33 /** … … 36 38 int daemon(int nochdir, int noclose) 37 39 { 40 #ifdef USE_LIBDAEMON 38 41 pid_t pid = daemon_fork(); 39 42 if (pid < 0) … … 48 51 daemon_close_all(-1); 49 52 return 0; 50 # if 053 #else 51 54 if (getppid() == 1) /* We already belong to init process */ 52 55 return -1;
Note:
See TracChangeset
for help on using the changeset viewer.