Skip to content

Commit cbd7006

Browse files
deekshithvarma256ArchanaArige
authored andcommitted
BE-417 | resolve sigint bad trap and unexpected error
Signed-off-by: deekshithvarma256 <[email protected]>
1 parent 44fe606 commit cbd7006

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

start.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ export DISCOVERY_AS_LOCALHOST=${DISCOVERY_AS_LOCALHOST:-true}
2121
export EXPLORER_APP_ROOT=${EXPLORER_APP_ROOT:-dist}
2222
export PORT=${PORT:-8080}
2323

24-
function log_exit() {
24+
log_exit() {
2525
echo "Server stopped"
2626
exit
2727
}
28-
trap log_exit SIGINT EXIT
28+
trap log_exit INT EXIT
2929
echo "Server running..."
3030

3131
node ${EXPLORER_APP_ROOT}/main.js name - hyperledger-explorer

0 commit comments

Comments
 (0)