mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-26 20:38:25 +00:00
fix unix detection in wrong place
This commit is contained in:
1 parent
e854585802
commit
aa27fde9d0
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -4147,7 +4147,7 @@ void mg_mgr_init(struct mg_mgr *mgr) {
|
|||||||
// clang-format on
|
// clang-format on
|
||||||
#elif MG_ENABLE_FREERTOS_TCP
|
#elif MG_ENABLE_FREERTOS_TCP
|
||||||
mgr->ss = FreeRTOS_CreateSocketSet();
|
mgr->ss = FreeRTOS_CreateSocketSet();
|
||||||
#elif defined(__unix) || defined(__unix__) || defined(__APPLE__)
|
#elif MG_ARCH == MG_ARCH_UNIX
|
||||||
// Ignore SIGPIPE signal, so if client cancels the request, it
|
// Ignore SIGPIPE signal, so if client cancels the request, it
|
||||||
// won't kill the whole process.
|
// won't kill the whole process.
|
||||||
signal(SIGPIPE, SIG_IGN);
|
signal(SIGPIPE, SIG_IGN);
|
||||||
|
|||||||
@@ -267,7 +267,7 @@ void mg_mgr_init(struct mg_mgr *mgr) {
|
|||||||
// clang-format on
|
// clang-format on
|
||||||
#elif MG_ENABLE_FREERTOS_TCP
|
#elif MG_ENABLE_FREERTOS_TCP
|
||||||
mgr->ss = FreeRTOS_CreateSocketSet();
|
mgr->ss = FreeRTOS_CreateSocketSet();
|
||||||
#elif defined(__unix) || defined(__unix__) || defined(__APPLE__)
|
#elif MG_ARCH == MG_ARCH_UNIX
|
||||||
// Ignore SIGPIPE signal, so if client cancels the request, it
|
// Ignore SIGPIPE signal, so if client cancels the request, it
|
||||||
// won't kill the whole process.
|
// won't kill the whole process.
|
||||||
signal(SIGPIPE, SIG_IGN);
|
signal(SIGPIPE, SIG_IGN);
|
||||||
|
|||||||
Reference in new issue
Block a user