Disable netifaces on *BSDs in general

Segmentation fault on OpenBSD too.
See commit 7cfc223 for more info.
This commit is contained in:
Alessio Sergi 2015-11-29 19:29:46 +01:00
parent 3dddbfdf00
commit c3c0c10305
2 changed files with 6 additions and 6 deletions

View File

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

View File

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