version 1.8, 2001/06/18 14:43:31 |
version 1.9, 2001/06/18 14:54:06 |
| |
char oldpath[256]; | char oldpath[256]; |
if (!ServicePath.empty()) | if (!ServicePath.empty()) |
{ | { |
_getcwd(oldpath,256); | getcwd(oldpath,256); |
_chdir(ServicePath.c_str()); | chdir(ServicePath.c_str()); |
} | } |
| |
system (ServiceCommand.c_str()); | system (ServiceCommand.c_str()); |
| |
if (!ServicePath.empty()) | if (!ServicePath.empty()) |
_chdir(oldpath); | chdir(oldpath); |
| |
nlinfo ("end service '%s' '%s' in '%s' directory", ServiceAlias.c_str(), ServiceCommand.c_str(), ServicePath.c_str()); | nlinfo ("end service '%s' '%s' in '%s' directory", ServiceAlias.c_str(), ServiceCommand.c_str(), ServicePath.c_str()); |
} | } |
| |
{ | { |
Services.push_back (CService (from)); | Services.push_back (CService (from)); |
CService *s = &(Services.back()); | CService *s = &(Services.back()); |
from->setAppId ((uint64)s); | from->setAppId ((uint64)(uint)s); |
| |
nlinfo ("*:*:%d connected", s->Id); | nlinfo ("*:*:%d connected", s->Id); |
| |