Skip to content

Commit

Permalink
Do not bind to port when generating database output
Browse files Browse the repository at this point in the history
  • Loading branch information
dspinellis committed Jun 27, 2024
1 parent 281af16 commit 93e3bbd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cscout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3382,7 +3382,9 @@ main(int argc, char *argv[])
if (argv[optind] == NULL || argv[optind + 1] != NULL)
usage(argv[0]);

if (process_mode != pm_compile && process_mode != pm_preprocess) {
if (process_mode != pm_compile
&& process_mode != pm_database
&& process_mode != pm_preprocess) {
if (!swill_init(portno)) {
cerr << "Couldn't initialize our web server on port " << portno << endl;
exit(1);
Expand Down

0 comments on commit 93e3bbd

Please sign in to comment.