/[svn]/branches/newio/src/ircd.c
ViewVC logotype

Diff of /branches/newio/src/ircd.c

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

revision 2691 by michael, Tue Dec 10 19:30:31 2013 UTC revision 2692 by michael, Tue Dec 17 18:56:15 2013 UTC
# Line 269  write_pidfile(const char *filename) Line 269  write_pidfile(const char *filename)
269    
270    if ((fb = fopen(filename, "w")))    if ((fb = fopen(filename, "w")))
271    {    {
272      char buff[32];      char buff[IRCD_BUFSIZE];
273      unsigned int pid = (unsigned int)getpid();      unsigned int pid = (unsigned int)getpid();
274    
275      snprintf(buff, sizeof(buff), "%u\n", pid);      snprintf(buff, sizeof(buff), "%u\n", pid);
# Line 298  static void Line 298  static void
298  check_pidfile(const char *filename)  check_pidfile(const char *filename)
299  {  {
300    FILE *fb;    FILE *fb;
301    char buff[32];    char buff[IRCD_BUFSIZE];
302    pid_t pidfromfile;    pid_t pidfromfile;
303    
304    /* Don't do logging here, since we don't have log() initialised */    /* Don't do logging here, since we don't have log() initialised */

Legend:
Removed from v.2691  
changed lines
  Added in v.2692

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