DragonFly BSD
DragonFly commits List (threaded) for 2004-09
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

cvs commit: src/libexec/ftpd


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 19 Sep 2004 17:58:36 -0700 (PDT)

dillon      2004/09/19 17:58:36 PDT

DragonFly src repository

  Modified files:
    libexec/ftpd         ftpd.c 
  Log:
  Do not unconditionally fork() after accept().  accept() can return -1 due
  to an interrupted system call (i.e. SIGCHLD).  If we fork in that case
  ftpd can get into an accept()/SIGCHLD/fork/[fail]/repeat loop.
  
  Reported-by: fabian <fabian.duelli@xxxxxxxxxx>
  
  Revision  Changes    Path
  1.5       +10 -7     src/libexec/ftpd/ftpd.c


http://www.dragonflybsd.org/cvsweb/src/libexec/ftpd/ftpd.c.diff?r1=1.4&r2=1.5&f=u



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]