Changeset 1784 for box/chris/general/lib/server/Daemon.cpp
- Timestamp:
- 01/08/2007 00:18:50 (5 years ago)
- File:
-
- 1 edited
-
box/chris/general/lib/server/Daemon.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
box/chris/general/lib/server/Daemon.cpp
r1741 r1784 19 19 #include <string.h> 20 20 #include <stdarg.h> 21 22 #ifdef HAVE_SYSLOG_H23 #include <syslog.h>24 #endif25 21 26 22 #ifdef WIN32 … … 354 350 if(::setsid() == -1) 355 351 { 356 ::syslog(LOG_ERR, "can't setsid"); 352 BOX_ERROR("Failed to setsid(): " << 353 strerror(errno)); 357 354 THROW_EXCEPTION(ServerException, DaemoniseFailed) 358 355 }
Note: See TracChangeset
for help on using the changeset viewer.
