Skip to content

Commit

Permalink
histdb: disable timeout of background processes in Bash 3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Mar 3, 2023
1 parent dcfb067 commit 20b42fa
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
2 changes: 1 addition & 1 deletion contrib
Submodule contrib updated 1 files
+10 −2 histdb.bash
3 changes: 3 additions & 0 deletions docs/ChangeLog.md
Expand Up @@ -585,6 +585,9 @@
- histdb: support `bleopt histdb_remarks` `#D1968` adaec05
- histdb: support timeout of background processes `#D1971` e0566bd
- histdb: enable database timeout for transactions `#D1982` a5b10e8
- histdb: fix `.timeout` not set for background `sqlite3` `#D1982` xxxxxxx
- histdb: suppress color codes in the default `histdb_remarks` `#D1968` xxxxxxx
- histdb: disable timeout of background processes in Bash 3.2 `#D1992` xxxxxxx
- integration: move `fzf` and `bash-preexec` integrations to subdir `#D1939` 86d9467

<!---------------------------------------------------------------------------->
Expand Down
28 changes: 28 additions & 0 deletions note.txt
Expand Up @@ -6678,6 +6678,12 @@ bash_tips
Done (実装ログ)
-------------------------------------------------------------------------------

2023-03-03

* histdb: bash-3.2 で idle を使おうとして失敗している [#D1992]

bash-3.2 では自動的に kill する機能はなくす?

2023-03-02

* edit: ジョブ情報が出力されるとステータスバーが消える (reported by mozirilla213) [#D1991]
Expand Down Expand Up @@ -6972,6 +6978,28 @@ bash_tips
で直っていると良いが、エラーがそもそも出る確率が少ない様だから確認
が難しい。次にまた問題が出た時に考える。

2023-03-01 やはりまたエラーが出た。改めて確認してみるとどうやら exec でバッ
クグラウンドで起動した時に timeout が指定できていない。起動時にちゃん
と.timeout を指定する事にした。何度か起動と収量を繰り返したが新しいものの方
では問題は生じない様に見える。と思ったが古い方でも起こる確率はやはり小さい
様なので何とも言えない。

もう一つ気づいた事は histdb の remarks に ANSI 色シーケンスが混入しているこ
と→これは単に .blerc で明示的に colored を指定していたのが悪い。修正した。
更にこれを元にして作成した histdb の既定の remarks にも同様の間違いがあった。
これも修正した。

% 2023-03-03 うーん。やっぱり駄目。何らかの拍子に失敗する。timeout をもっと
% 長く取るか或いは諦めてエラーを強制的に suppress するか。どうも終了する時
% に発生する様なのでエラーメッセージに関してはそれ程気にしなくても良いのか
% もしれない。一方で、終了する瞬間にメッセージが表示されることを思うと実は
% .timeout が短い事による問題ではなくて、やはり .timeout で待たない様な設定
% になっているという事だろうか。と思って気づいたが contrib の dev ブランチ
% に前回の修正があって、それが有効になっていなかった。

取り敢えず平和に動いている様な気がするので #D1992 と一緒に修正を適用する事
にする。

* 2023-02-21 どうも bash-5.2 で WINCH が効かなくなっている [#D1981]

最初は効いているが、同時に複数の WINCH を受け取る等の事が一旦起こるとそれ以
Expand Down

0 comments on commit 20b42fa

Please sign in to comment.