summaryrefslogtreecommitdiff
path: root/udp.c
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2013-08-26 10:35:12 +0200
committerLinus Nordberg <linus@nordberg.se>2013-09-02 13:44:28 +0200
commit55ca280f16473095380e22c574910f106b11058f (patch)
treef524607a18cce8e39c2cf9c0716659232e16c24c /udp.c
parent05b360612d4f1bb48caedc766ede2109024bdc6f (diff)
Create threads with a 32 KB stack rather than what happens to be the default.
On Linux, the default stack size is typically 8 MB. Patch by Fabian Mauchle.
Diffstat (limited to 'udp.c')
-rw-r--r--udp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/udp.c b/udp.c
index c804703..380db18 100644
--- a/udp.c
+++ b/udp.c
@@ -352,15 +352,15 @@ void initextraudp() {
}
if (client4_sock >= 0)
- if (pthread_create(&cl4th, NULL, udpclientrd, (void *)&client4_sock))
+ if (pthread_create(&cl4th, &pthread_attr, udpclientrd, (void *)&client4_sock))
debugx(1, DBG_ERR, "pthread_create failed");
if (client6_sock >= 0)
- if (pthread_create(&cl6th, NULL, udpclientrd, (void *)&client6_sock))
+ if (pthread_create(&cl6th, &pthread_attr, udpclientrd, (void *)&client6_sock))
debugx(1, DBG_ERR, "pthread_create failed");
if (find_clconf_type(handle, NULL)) {
server_replyq = newqueue();
- if (pthread_create(&srvth, NULL, udpserverwr, (void *)server_replyq))
+ if (pthread_create(&srvth, &pthread_attr, udpserverwr, (void *)server_replyq))
debugx(1, DBG_ERR, "pthread_create failed");
}
}