Skip to content

Commit f5187e3

Browse files
committed
Don't use SIGKILL on git status
This should prevent leaving behind a a Git index lock file. (It turns out git stauts is not an read-only operation after all.) See #9
1 parent 0222cf5 commit f5187e3

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

git.d

+2-4
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,8 @@ StatusFlags asyncGetFlags(Duration allottedTime)
187187
processPorcelainLine(nextLine);
188188
}
189189
else if (pastTime(allottedTime)) {
190-
import core.sys.posix.signal: SIGKILL;
191-
// We want to leave _right now_, and since git status
192-
// is a read-only procedure, just kill -9 the thing.
193-
kill(pipes.pid, SIGKILL);
190+
import core.sys.posix.signal: SIGTERM;
191+
kill(pipes.pid, SIGTERM);
194192
break;
195193
}
196194
}

0 commit comments

Comments
 (0)