summaryrefslogtreecommitdiff
path: root/multimedia/lms/files/patch-src_libs_utils_impl_ChildProcess.cpp
blob: 52046a1b918a354a4a1f3afc6c618092a425c579 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- src/libs/utils/impl/ChildProcess.cpp.orig	2021-04-25 18:33:13 UTC
+++ src/libs/utils/impl/ChildProcess.cpp
@@ -68,6 +68,7 @@ ChildProcess::ChildProcess(boost::asio::io_context& io
 	if (res < 0)
 		throw SystemException {errno, "pipe2 failed!"};
 
+#if !defined(__FreeBSD__) // see https://github.com/epoupon/lms/issues/144
 	{
 		const std::size_t pipeSize {65536*8};
 
@@ -77,6 +78,7 @@ ChildProcess::ChildProcess(boost::asio::io_context& io
 		if (fcntl(pipe[1], F_SETPIPE_SZ, pipeSize) == -1)
 			throw SystemException {errno, "fcntl failed!"};
 	}
+#endif
 
 	res = fork();
 	if (res == -1)