Skip to content
This repository was archived by the owner on Mar 1, 2019. It is now read-only.
This repository was archived by the owner on Mar 1, 2019. It is now read-only.

Ctrl-c doesn't work for wallet in ghci #341

@Anviking

Description

@Anviking
Release Operating System Cause
next Windows & OSX & Linux) Code v Configuration v Environment v Human v Unknown

Context

I wanted to use ghci for breakpoints.

Steps to Reproduce

stack ghci cardano-wallet --ghc-options=-optl-Wl,-dead_strip_dylibs

When loaded, call :main with normal CLI commands:

:main --configuration-key mainnet_dryrun_full --configuration-file ../cardano-sl/lib/configuration.yaml --db-path ./state-staging/db --wallet-db-path ./state-staging/wallet-db --tls-ca-cert ./state-staging/tls/server/ca.crt --tls-node-client-cert ./state-staging/tls/client/client.crt --tls-node-client-key ./state-staging/tls/client/client.key --tls-wallet-server-cert ./state-staging/tls/server/server.crt --tls-wallet-server-key ./state-staging/tls/server/server.key --topology ./topology-examples/testnet.yaml --system-start 0 --node-id wallet-node --node-api-address 127.0.0.1:8080 --wallet-api-address 127.0.0.1:8090 --wallet-doc-address 127.0.0.1:8100 --rebuild-db --wallet-rebuild-db

Press ctrl-c

Expected behavior

  • Wallet server stops cleanly
  • ghci session stays open

Actual behavior

<interactive>: <stdout>: hFlush: illegal operation (handle is closed)

ghci crashes.


Resolution Plan

PR

Number Base
#? develop

QA

Metadata

Metadata

Assignees

No one assigned

    Labels

    BUGSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions