We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 08c878a commit 7778780Copy full SHA for 7778780
cmd/geth/consolecmd.go
@@ -19,10 +19,8 @@ package main
19
import (
20
"fmt"
21
"os"
22
- "os/signal"
23
"path/filepath"
24
"strings"
25
- "syscall"
26
27
"github.com/ethereum/go-ethereum/cmd/utils"
28
"github.com/ethereum/go-ethereum/console"
@@ -218,13 +216,10 @@ func ephemeralConsole(ctx *cli.Context) error {
218
216
utils.Fatalf("Failed to execute %s: %v", file, err)
219
217
}
220
221
- // Wait for pending callbacks, but stop for Ctrl-C.
222
- abort := make(chan os.Signal, 1)
223
- signal.Notify(abort, syscall.SIGINT, syscall.SIGTERM)
224
225
go func() {
226
- <-abort
227
- os.Exit(0)
+ stack.Wait()
+ console.Stop(false)
228
}()
229
console.Stop(true)
230
0 commit comments