mirror of
https://github.com/nicolargo/glances.git
synced 2024-11-25 08:33:22 +03:00
Disable netifaces on *BSDs in general
Segmentation fault on OpenBSD too.
See commit 7cfc223
for more info.
This commit is contained in:
parent
3dddbfdf00
commit
c3c0c10305
@ -22,7 +22,7 @@
|
||||
import socket
|
||||
import sys
|
||||
|
||||
from glances.globals import appname, is_freebsd
|
||||
from glances.globals import appname, is_bsd
|
||||
from glances.logger import logger
|
||||
|
||||
try:
|
||||
@ -192,9 +192,9 @@ class GlancesAutoDiscoverClient(object):
|
||||
except socket.error as e:
|
||||
logger.error("Cannot start zeroconf: {0}".format(e))
|
||||
|
||||
# XXX FreeBSD: Segmentation fault (core dumped)
|
||||
# XXX *BSDs: Segmentation fault (core dumped)
|
||||
# -- https://bitbucket.org/al45tair/netifaces/issues/15
|
||||
if not is_freebsd:
|
||||
if not is_bsd:
|
||||
try:
|
||||
# -B @ overwrite the dynamic IPv4 choice
|
||||
if zeroconf_bind_address == '0.0.0.0':
|
||||
|
@ -20,13 +20,13 @@
|
||||
"""IP plugin."""
|
||||
|
||||
from glances.compat import iterkeys
|
||||
from glances.globals import is_freebsd
|
||||
from glances.globals import is_bsd
|
||||
from glances.logger import logger
|
||||
from glances.plugins.glances_plugin import GlancesPlugin
|
||||
|
||||
# XXX FreeBSD: Segmentation fault (core dumped)
|
||||
# XXX *BSDs: Segmentation fault (core dumped)
|
||||
# -- https://bitbucket.org/al45tair/netifaces/issues/15
|
||||
if not is_freebsd:
|
||||
if not is_bsd:
|
||||
try:
|
||||
import netifaces
|
||||
netifaces_tag = True
|
||||
|
Loading…
Reference in New Issue
Block a user