summaryrefslogtreecommitdiff
path: root/modules/caddyhttp/fileserver/command.go
diff options
context:
space:
mode:
authorFrancis Lavoie <lavofr@gmail.com>2020-05-21 15:09:49 -0400
committerGitHub <noreply@github.com>2020-05-21 13:09:49 -0600
commitbb67e19d7bacd70a13647538c8e9820eb42090b2 (patch)
treee210b62e41bdf31da0c812268ecf7c9393799daf /modules/caddyhttp/fileserver/command.go
parent1dc4ec2d77f6f239f4c17e8ba754e71655796a4d (diff)
cmd: hash-password: Fix broken terminal state on SIGINT (#3416)
* caddyauth: Fix hash-password broken terminal state on SIGINT * caddycmd: Move TrapSignals calls to only subcommands that run long
Diffstat (limited to 'modules/caddyhttp/fileserver/command.go')
-rw-r--r--modules/caddyhttp/fileserver/command.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/caddyhttp/fileserver/command.go b/modules/caddyhttp/fileserver/command.go
index 53aa7aa..6a44b3c 100644
--- a/modules/caddyhttp/fileserver/command.go
+++ b/modules/caddyhttp/fileserver/command.go
@@ -61,6 +61,8 @@ respond with a file listing.`,
}
func cmdFileServer(fs caddycmd.Flags) (int, error) {
+ caddy.TrapSignals()
+
domain := fs.String("domain")
root := fs.String("root")
listen := fs.String("listen")