/[svn]/hopm/trunk/src/main.c
ViewVC logotype

Diff of /hopm/trunk/src/main.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 8584 by michael, Sun Oct 14 15:12:50 2018 UTC revision 8585 by michael, Sun Oct 14 18:02:05 2018 UTC
# Line 59  unsigned int OPT_DEBUG = 0;  /* Debug le Line 59  unsigned int OPT_DEBUG = 0;  /* Debug le
59    
60    
61  static void  static void
62    setup_corelimit(void)
63    {
64      struct rlimit rlim;
65    
66      if (getrlimit(RLIMIT_CORE, &rlim) == 0)
67      {
68        rlim.rlim_cur = rlim.rlim_max;
69        setrlimit(RLIMIT_CORE, &rlim);
70      }
71    }
72    
73    static void
74  do_signal(int signum)  do_signal(int signum)
75  {  {
76    switch (signum)    switch (signum)
# Line 88  main(int argc, char *argv[]) Line 100  main(int argc, char *argv[])
100    FILE *pidout;    FILE *pidout;
101    struct rlimit rlim;    struct rlimit rlim;
102    
103      setup_corelimit();
104    
105    while (1)    while (1)
106    {    {
107      int c = getopt(argc, argv, "dc:");      int c = getopt(argc, argv, "dc:");

Legend:
Removed from v.8584  
changed lines
  Added in v.8585

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28