diff options
author | Raphael Kubo da Costa <rakuco@FreeBSD.org> | 2013-05-18 23:09:58 +0000 |
---|---|---|
committer | Raphael Kubo da Costa <rakuco@FreeBSD.org> | 2013-05-18 23:09:58 +0000 |
commit | c801875fa461b840d410b6e5e24fb80d5f41131c (patch) | |
tree | c953f17b112b90ba7219356ed154f70c764d9e1b /net/iaxmodem/files/patch-iaxmodem.c | |
parent | Add USE_TEX=texlive for TeXLive-specific ports. (diff) |
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)
Diffstat (limited to '')
-rw-r--r-- | net/iaxmodem/files/patch-iaxmodem.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/net/iaxmodem/files/patch-iaxmodem.c b/net/iaxmodem/files/patch-iaxmodem.c index 98ad623f93a8..5e3485bd021a 100644 --- a/net/iaxmodem/files/patch-iaxmodem.c +++ b/net/iaxmodem/files/patch-iaxmodem.c @@ -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; + } |