Browse code

clambc: exit if failed to map inputfile.

Török Edvin authored on 2010/04/02 22:58:28
Showing 1 changed files
... ...
@@ -371,6 +371,7 @@ int main(int argc, char *argv[])
371 371
 	    map = fmap(fd, 0, 0);
372 372
 	    if (!map) {
373 373
 		fprintf(stderr, "Unable to map input file %s\n", opt->strarg);
374
+		exit(5);
374 375
 	    }
375 376
 	    rc = cli_bytecode_context_setfile(ctx, map);
376 377
 	    if (rc != CL_SUCCESS) {