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.
This commit is contained in:
parent
75c54f2258
commit
5224610654
2
util.py
2
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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user