1
0
mirror of https://github.com/azlux/botamusique synced 2024-11-23 13:56:17 +00:00

Compare commits

..

2 Commits

Author SHA1 Message Date
3733353170
Merge pull request #291 from SeanFxyz/patch-1
Update pipe_no_wait function to work on FreeBSD
2021-09-01 12:19:37 +02:00
Sean
5224610654
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.
2021-08-31 20:07:48 -07:00

View File

@ -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