Skip to content

Commit

Permalink
Don't use a smaller pthread stack size than what's allowed.
Browse files Browse the repository at this point in the history
Patch by Kolbjørn Barmen.
  • Loading branch information
Linus Nordberg committed Oct 17, 2016
1 parent 95ef105 commit e901dd8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions radsecproxy.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,16 @@
#define MAX_CERT_DEPTH 5
#define STATUS_SERVER_PERIOD 25
#define IDLE_TIMEOUT 300

/* We want PTHREAD_STACK_SIZE to be 32768, but some platforms
* have a higher minimum value defined in PTHREAD_STACK_MIN. */
#define PTHREAD_STACK_SIZE 32768
#if defined(PTHREAD_STACK_MIN)
#if PTHREAD_STACK_MIN > PTHREAD_STACK_SIZE
#undef PTHREAD_STACK_SIZE
#define PTHREAD_STACK_SIZE PTHREAD_STACK_MIN
#endif
#endif

/* 27262 is vendor DANTE Ltd. */
#define DEFAULT_TTL_ATTR "27262:1"
Expand Down

0 comments on commit e901dd8

Please sign in to comment.