larkery / zsh-histdb

A slightly better history for zsh
MIT License
1.27k stars 75 forks source link

Wait for the sqlite3 process to terminate #121

Open IngoMeyer441 opened 2 years ago

IngoMeyer441 commented 2 years ago

When closing the pipe to sqlite3, the sqlite3 process is not terminated instantly which leads to race conditions with Git in histdb-sync. Therefore, this PR adds a block to wait for the sqlite3 process to terminate in _histdb_stop_sqlite_pipe.