mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Implement upstream fix where multiple net/iaxmodem instances are spawned.
Multiple instances of iaxmodem are being spawned due to a badly placed closedir call. The fix has been submitted (and accepted) upstream, however there has been no new release since the fix was submitted. PR: ports/176178 Submitted by: John Bayly <freebsd.ports@tipstrade.net> Approved by: maintainer timeout (93 days)
This commit is contained in:
parent
bd110f37c6
commit
c801875fa4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=318465
2 changed files with 19 additions and 6 deletions
|
@ -1,13 +1,9 @@
|
|||
# New ports collection makefile for: iaxmodem
|
||||
# Date created: 15 Jun 2006
|
||||
# Whom: Filippo Natali <filippo.natali@gmail.com>
|
||||
#
|
||||
# Created by: Filippo Natali <filippo.natali@gmail.com>
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= iaxmodem
|
||||
PORTVERSION= 1.2.0
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
CATEGORIES= net comms
|
||||
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
|
||||
|
||||
|
|
|
@ -49,3 +49,20 @@
|
|||
#include <tiffio.h>
|
||||
|
||||
#ifndef O_LARGEFILE
|
||||
@@ -1645,8 +1666,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
- closedir(cfdir);
|
||||
-
|
||||
if (pid == 0) {
|
||||
/* Start the modem */
|
||||
iaxmodem(config, 0);
|
||||
@@ -1654,6 +1673,8 @@
|
||||
return 1;
|
||||
}
|
||||
|
||||
+ closedir(cfdir);
|
||||
+
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue