/[svn]/ircd-hybrid/libio/misc/misc.c
ViewVC logotype

Diff of /ircd-hybrid/libio/misc/misc.c

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

revision 641 by metalrock, Sat Jan 7 05:06:18 2006 UTC revision 642 by michael, Wed Jun 7 11:03:17 2006 UTC
# Line 189  set_time(void) Line 189  set_time(void)
189    SystemTime.tv_usec = newtime.tv_usec;    SystemTime.tv_usec = newtime.tv_usec;
190  }  }
191    
192    /* setup_corefile()
193     *
194     * inputs       - nothing
195     * output       - nothing
196     * side effects - setups corefile to system limits.
197     * -kre
198     */
199    void
200    setup_corefile(void)
201    {
202    #ifdef HAVE_SYS_RESOURCE_H
203      struct rlimit rlim; /* resource limits */
204    
205      /* Set corefilesize to maximum */
206      if (!getrlimit(RLIMIT_CORE, &rlim))
207      {
208        rlim.rlim_cur = rlim.rlim_max;
209        setrlimit(RLIMIT_CORE, &rlim);
210      }
211    #endif
212    }
213    
214  void  void
215  libio_init(int daemonn)  libio_init(int daemonn)
216  {  {

Legend:
Removed from v.641  
changed lines
  Added in v.642

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