Skip to content

Commit

Permalink
Support libc.so.6.1
Browse files Browse the repository at this point in the history
This is the SONAME on ia64/alpha.

See cockpit-project/cockpit#21396
  • Loading branch information
martinpitt committed Dec 12, 2024
1 parent 889c4b1 commit 60d5ae8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/ferny/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@
from . import ssh_errors
from .interaction_agent import InteractionAgent, InteractionError, InteractionHandler, write_askpass_to_tmpdir

prctl = ctypes.cdll.LoadLibrary('libc.so.6').prctl
try:
prctl = ctypes.cdll.LoadLibrary('libc.so.6').prctl
except OSError:
# ia64/alpha
prctl = ctypes.cdll.LoadLibrary('libc.so.6.1').prctl

logger = logging.getLogger(__name__)
PR_SET_PDEATHSIG = 1

Expand Down

0 comments on commit 60d5ae8

Please sign in to comment.