Skip to content

Commit d112762

Browse files
jnarebgitster
authored andcommitted
git-instaweb: Remove pidfile after stopping web server
This way running e.g. "git instaweb" after "git instaweb --stop" would not try to kill already stopped web server. This is probably important only for those web servers that are "daemonized" by git-instaweb itself, i.e. for those where it is git-instaweb that creates pidfile. Currently it is includes only 'mongoose' web server, but it would also include 'plackup' web server (added in later commit). Signed-off-by: Jakub Narebski <[email protected]> Acked-by: Petr Baudis <[email protected]> Acked-by: Eric Wong <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent c0cb4ed commit d112762

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

git-instaweb.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ EOF
114114

115115
stop_httpd () {
116116
test -f "$fqgitdir/pid" && kill $(cat "$fqgitdir/pid")
117+
rm -f "$fqgitdir/pid"
117118
}
118119

119120
while test $# != 0

0 commit comments

Comments
 (0)