Changeset 6144 in vbox
- Timestamp:
- Dec 19, 2007 5:16:07 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxService-solaris.cpp
r6141 r6144 71 71 setsid(); 72 72 73 int size = getdtablesize(); 74 if (size < 0) 75 size = 2; 76 73 /* Close all or only standard streams */ 74 int size = noclose ? getdtablesize() : 2; 77 75 for (int i = size; i >= 0; i--) 78 76 close(i); … … 87 85 chdir("/"); /* @todo Check if switching to '/' is the convention for Solaris daemons. */ 88 86 89 /* Set file permission to something secure .*/87 /* Set file permission to something secure, as we need to run as root on Solaris */ 90 88 umask(027); 91 if (noclose) /* Presuming this means ignore SIGTERM, SIGHUP... */92 {93 signal(SIGTERM, SIG_IGN);94 signal(SIGHUP, SIG_IGN);95 }96 89 return 0; 97 90 #endif
Note:
See TracChangeset
for help on using the changeset viewer.