Github user mike-jumper commented on a diff in the pull request:

    https://github.com/apache/guacamole-server/pull/206#discussion_r238167956
  
    --- Diff: src/guacd/daemon.c ---
    @@ -275,6 +281,17 @@ int main(int argc, char* argv[]) {
         /* General */
         int retval;
     
    +#ifdef PTHREAD_STACK_SIZE
    +    /* Set default stack size */
    +    pthread_attr_t default_pthread_attr;
    +    if (pthread_attr_init(&default_pthread_attr) ||
    +        pthread_attr_setstacksize(&default_pthread_attr, 
PTHREAD_STACK_SIZE) ||
    +        pthread_setattr_default_np(&default_pthread_attr)) {
    +       fprintf(stderr, "Couldn't set requested pthread stack size of 
%d\n", PTHREAD_STACK_SIZE);
    --- End diff --
    
    Why `fprintf()` early rather than `guacd_log()` after the logging system is 
ready?


---

Reply via email to