From 52246106542f6c85f5510825c4f6aa51c785e494 Mon Sep 17 00:00:00 2001 From: Sean <60199659+SeanFxyz@users.noreply.github.com> Date: Tue, 31 Aug 2021 20:07:48 -0700 Subject: [PATCH] Update pipe_no_wait function to work on FreeBSD This very small change made the bot work on my FreeBSD server. Haven't had any issues so far. --- util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.py b/util.py index fb67a14..396efe5 100644 --- a/util.py +++ b/util.py @@ -164,7 +164,7 @@ def pipe_no_wait(): """ Generate a non-block pipe used to fetch the STDERR of ffmpeg. """ - if platform == "linux" or platform == "linux2" or platform == "darwin" or platform.startswith("openbsd"): + if platform == "linux" or platform == "linux2" or platform == "darwin" or platform.startswith("openbsd") or platform.startswith("freebsd"): import fcntl import os