pos = strstr(buf, "\ninitpid: ");
if (pos!=0) {
- pos += sizeof("\ninitpid: ")-1;
+ pos += sizeof("\ninitpid: ")-1;
if (strncmp(pos, "none", 4)==0) *res = -1;
else *res = atoi(pos);
}
{
struct dirent **namelist;
int n;
-
- vc_new_s_context(1,0,0); // ignore errors silently...
+
+ switchToWatchXid(0); // ignore errors silently...
n = scandir("/proc", &namelist, selectPid, alphasort);
if (n<0) perror("scandir()");
else while (n--) {
}
if (optind+2>argc) {
- WRITE_MSG(2, "No vserver or tag give; please try '--help' for more information.\n");
- exit(1);
+ execQuery("-", tgSYSINFO, 0, 0);
+ WRITE_MSG(2, "\nAssumed 'SYSINFO' as no other option given; try '--help' for more information.\n");
+ exit(0);
}
vserver = argv[optind];