diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2018-12-21 05:13:30 +0100 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2018-12-21 05:13:30 +0100 |
commit | 66cafc0bf6ef742661f2f8bbc8ac195c2ca8b4e4 (patch) | |
tree | e525b2cc84b43a98ca98880e14d82fb8d42890d8 /src/blogc-runserver | |
parent | eac073d479dfbe5ecf9c5fc7180f7b29da6d1298 (diff) | |
download | blogc-66cafc0bf6ef742661f2f8bbc8ac195c2ca8b4e4.tar.gz blogc-66cafc0bf6ef742661f2f8bbc8ac195c2ca8b4e4.tar.bz2 blogc-66cafc0bf6ef742661f2f8bbc8ac195c2ca8b4e4.zip |
wip
Diffstat (limited to 'src/blogc-runserver')
-rw-r--r-- | src/blogc-runserver/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/blogc-runserver/main.c b/src/blogc-runserver/main.c index df0305e..deb8118 100644 --- a/src/blogc-runserver/main.c +++ b/src/blogc-runserver/main.c @@ -48,11 +48,13 @@ print_usage(void) int main(int argc, char **argv) { +#if !defined(WIN32) && !defined(_WIN32) struct sigaction new_action; new_action.sa_handler = SIG_IGN; sigemptyset(&new_action.sa_mask); new_action.sa_flags = 0; sigaction(SIGPIPE, &new_action, NULL); +#endif int rv = 0; char *host = NULL; @@ -98,7 +100,7 @@ main(int argc, char **argv) max_threads = strtoul(ptr, &endptr, 10); if (*ptr != '\0' && *endptr != '\0') fprintf(stderr, "blogc-runserver: warning: invalid value " - "for -m argument: %s. using %zu instead\n", ptr, max_threads); + "for -m argument: %s. using %d instead\n", ptr, (int)max_threads); break; default: print_usage(); |