+// Copyright 2000-2005 the Contributors, as shown in the revision logs.
+// Licensed under the Apache Public Source License 2.0 ("the License").
+// You may not use this file except in compliance with the License.
+
package org.ibex.jinetd;
import org.ibex.util.*;
import java.io.*;
String[] kids = list();
if (kids == null) return;
for(int i=0; i<kids.length; i++) {
- if (cache.get(kids[i]) != null) continue;
- Watched kid = slash(kids[i]);
- if (kid == null) continue;
- cache.put(kids[i], kid);
- watcher().changed(kid);
+ Watched kid = (Watched)cache.get(kids[i]);
+ if (kid == null) {
+ kid = slash(kids[i]);
+ if (kid == null) continue;
+ cache.put(kids[i], kid);
+ watcher().changed(kid);
+ } else {
+ kid.scan();
+ }
}
}