Skip to content

Commit

Permalink
module_main: Make sure to report initialization error before closing
Browse files Browse the repository at this point in the history
in case module_close crashes for instance.
  • Loading branch information
net-ddavies authored and sthibaul committed Mar 3, 2025
1 parent dd759d7 commit ea1ce75
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/modules/module_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ int main(int argc, char *argv[])
msg = strdup("Unspecified initialization error\n");
printf("399-%s\n", msg);
printf("399 ERR CANT INIT MODULE\n");
fflush(stdout);
free(msg);
module_close();
exit(1);
Expand Down

0 comments on commit ea1ce75

Please sign in to comment.