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 <jnareb@gmail.com> Acked-by: Petr Baudis <pasky@suse.cz> Acked-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jakub Narebski committed
May 28, 2010 at 21:11 UTC
d1127622f5e4aa2abf6b492f6e43c0e17c3e0442
1 file changed
+1
git-instaweb.sh
+1
@@ -114,6 +114,7 @@ EOF
114
115
stop_httpd () {
116
test -f "$fqgitdir/pid" && kill $(cat "$fqgitdir/pid")
117
+ rm -f "$fqgitdir/pid"
118
}
119
120
while test $# != 0