aboutsummaryrefslogtreecommitdiffstats
path: root/ftp/atftp
diff options
context:
space:
mode:
authorkevlo <kevlo@FreeBSD.org>2011-02-09 14:30:09 +0800
committerkevlo <kevlo@FreeBSD.org>2011-02-09 14:30:09 +0800
commit792c64e6cc9bcebfdaaa4abd102f88059954eeef (patch)
tree455315d1fff62a212f56d6c653f69e3292b72def /ftp/atftp
parente608f62fd746132a4d438840a2580c664fed9a08 (diff)
downloadfreebsd-ports-gnome-792c64e6cc9bcebfdaaa4abd102f88059954eeef.tar.gz
freebsd-ports-gnome-792c64e6cc9bcebfdaaa4abd102f88059954eeef.tar.zst
freebsd-ports-gnome-792c64e6cc9bcebfdaaa4abd102f88059954eeef.zip
Fix my last commit
Diffstat (limited to 'ftp/atftp')
-rw-r--r--ftp/atftp/files/patch-tftpd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ftp/atftp/files/patch-tftpd.c b/ftp/atftp/files/patch-tftpd.c
index 01baa6fa655e..b8855c03899e 100644
--- a/ftp/atftp/files/patch-tftpd.c
+++ b/ftp/atftp/files/patch-tftpd.c
@@ -1,5 +1,5 @@
--- tftpd.c.orig 2004-02-27 10:05:26.000000000 +0800
-+++ tftpd.c 2011-01-26 18:08:01.000000000 +0800
++++ tftpd.c 2011-02-09 14:18:04.000000000 +0800
@@ -60,6 +60,9 @@
char directory[MAXLEN] = "/tftpboot/";
int retry_timeout = S_TIMEOUT;
@@ -49,10 +49,10 @@
- select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
+ rv = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
+ if (rv < 0) {
-+ logger(LOG_ERR, "%s: %d: select: %s",
-+ __FILE__, __LINE__, strerror(errno));
+ if (errno == EINTR)
+ continue;
++ logger(LOG_ERR, "%s: %d: select: %s",
++ __FILE__, __LINE__, strerror(errno));
+
+ /* Clear the bits, they are undefined! */
+ FD_ZERO(&rfds);