Upgrade from 0.8 to 0.9. The change-log can be seen here:

http://dtach.sourceforge.net/

Notified by:	portscout
This commit is contained in:
Mikhail Teterin 2016-05-11 14:50:40 +00:00
parent 629db82356
commit 7e53a87279
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=415000
3 changed files with 3 additions and 28 deletions

View File

@ -2,8 +2,7 @@
# $FreeBSD$
PORTNAME= dtach
PORTVERSION= 0.8
PORTREVISION= 1
PORTVERSION= 0.9
CATEGORIES= misc
MASTER_SITES= SF

View File

@ -1,2 +1,2 @@
SHA256 (dtach-0.8.tar.gz) = 16614ebddf8ab2811d3dc0e7f329c7de88929ac6a9632d4cb4aef7fe11b8f2a9
SIZE (dtach-0.8.tar.gz) = 55472
SHA256 (dtach-0.9.tar.gz) = 32e9fd6923c553c443fab4ec9c1f95d83fa47b771e6e1dafb018c567291492f3
SIZE (dtach-0.9.tar.gz) = 60608

View File

@ -39,27 +39,3 @@
{
close(s);
return -1;
@@ -454,6 +470,8 @@ master_process(int s, char **argv, int w
/* Loop forever. */
while (1)
{
+ int has_attached_client = 0;
+
/* Re-initialize the file descriptor set for select. */
FD_ZERO(&readfds);
FD_SET(s, &readfds);
@@ -480,8 +498,14 @@ master_process(int s, char **argv, int w
FD_SET(p->fd, &readfds);
if (p->fd > highest_fd)
highest_fd = p->fd;
+
+ if (p->attached) {
+ has_attached_client = 1;
+ }
}
+ check_socket_mode(has_attached_client);
+
/* Wait for something to happen. */
if (select(highest_fd + 1, &readfds, NULL, NULL, NULL) < 0)
{