chiark / gitweb /
Decombobulate island names in building screen (/w)
[ypp-sc-tools.db-live.git] / pctb / resolve.c
index 052ec32..0bd0579 100644 (file)
@@ -25,6 +25,7 @@
  *  sponsored by Three Rings.
  */
 
+#include "convert.h"
 #include "ocr.h"
 
 static FILE *resolver;
@@ -48,17 +49,20 @@ FILE *resolve_start(void) {
       /* we know donepipe[1] is >= 4 and we have dealt with all the others
        * so we aren't in any danger of overwriting some other fd 4: */
       sysassert( dup2(donepipe[1],4) ==4 );
-      execlp(o_resolver, o_resolver,
-            DEBUGP(callout) ? "--debug" : "--noop-arg",
-            "--automatic-1",
-            (char*)0);
-      sysassert(!"execlp ocr-resolver failed");
+      EXECLP_HELPER("dictionary-manager",
+                   DEBUGP(callout) ? "--debug" : "--noop-arg",
+                   o_quiet ? "--quiet" : "--noop-arg",
+                   "--automatic-1",
+                   (char*)0);
+      sysassert(!"execlp dictionary-manager --automatic failed");
     }
     sysassert(! close(jobpipe[0]) );
     sysassert(! close(donepipe[1]) );
     resolver= fdopen(jobpipe[1],"w"); sysassert(resolver);
     resolver_done= donepipe[0];
   }
+
+  progress("");
   return resolver;
 }
 
@@ -78,7 +82,7 @@ void resolve_finish(void) {
   }
 
   if (r==0) {
-    waitpid_check_exitstatus(resolver_pid, "character resolver");
+    waitpid_check_exitstatus(resolver_pid, "dictionary-manager");
     fclose(resolver);
     close(resolver_done);
     resolver= 0;