~mm-yuhu/gearmand/server-funcs

« back to all changes in this revision

Viewing changes to gearmand/gearmand.c

  • Committer: Eric Day
  • Date: 2009-06-15 18:08:53 UTC
  • mfrom: (19.15.12 solaris-64-fixes)
  • Revision ID: eday@oddments.org-20090615180853-axoirktegd1vhxp2
Merged Monty's build changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
219
219
      }
220
220
    }
221
221
    else if (!strcmp(name, "file-descriptors"))
222
 
      fds= atoi(value);
 
222
      fds= (rlim_t)atoi(value);
223
223
    else if (!strcmp(name, "help"))
224
224
    {
225
225
      printf("\ngearmand %s - %s\n\n", gearman_version(), gearman_bugreport());
240
240
    else if (!strcmp(name, "queue-type"))
241
241
      queue_type= value;
242
242
    else if (!strcmp(name, "threads"))
243
 
      threads= atoi(value);
 
243
      threads= (uint32_t)atoi(value);
244
244
    else if (!strcmp(name, "user"))
245
245
      user= value;
246
246
    else if (!strcmp(name, "verbose"))
485
485
  return false;
486
486
}
487
487
 
488
 
static void _shutdown_handler(int signal)
 
488
static void _shutdown_handler(int signal_arg)
489
489
{
490
 
  if (signal == SIGUSR1)
 
490
  if (signal_arg == SIGUSR1)
491
491
    gearmand_wakeup(_gearmand, GEARMAND_WAKEUP_SHUTDOWN_GRACEFUL);
492
492
  else
493
493
    gearmand_wakeup(_gearmand, GEARMAND_WAKEUP_SHUTDOWN);