Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit bed164c

Browse files
committedOct 25, 2015
use os.Interrupt for cross platform happiness
License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>
1 parent 795e242 commit bed164c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎cmd/ipfs/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ func (i *cmdInvocation) SetupInterruptHandler(ctx context.Context) (io.Closer, c
567567
}
568568
}
569569

570-
intrh.Handle(handlerFunc, syscall.SIGHUP, syscall.SIGINT, syscall.SIGTERM)
570+
intrh.Handle(handlerFunc, syscall.SIGHUP, os.Interrupt, syscall.SIGTERM)
571571

572572
return intrh, ctx
573573
}

0 commit comments

Comments
 (0)
Please sign in to comment.