Passing through signals when run with --appimage-extract-and-run
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- linux
調査の方向性
issue で説明されている apprun パスから始め、通常の実行と比較して --appimage-extract-and-run に対して fork と execv がどのように使用されているかに注目してください。ユーザーが起動した AppImage から展開された子プロセスへのシグナルの伝達を追跡し、その後、SIGINT または SIGQUIT が実際のプログラムに到達してクリーンアップを実行できることを確認してください。
索引モデルが issue の本文から書いたものです。
説明
In the apprun,
when an appimage is called normally, execv is called in the parent branch of the fork, so the final process will get signals passed through to it.
However, when --appimage-extract-and-run is used, execv is call in the child branch of the fork. This means that signals sent to the process started by the user (i.e. the .AppImage itself) evaporate into thin air.
My preference would be that both modes of operation act the same way, and the process started by the user is the same process they send signals to.
The reason why I would want this is a bit more convoluted: I have an AppImage running inside a docker container. The base image for the container doesn't have FUSE available, so I run the appimage using --appimage-extract-and-run. In docker containers, PID 0 is always the actual program you want to run in the container - in my case, the appimage. When you stop a container, it can be configured so that the container will send a particular signal to PID 0 to trigger a cleanup. That signal (SIGINT or SIGQUIT in my case) isn't getting through, because it is stopping at the AppImage process, and not being passed on to the child. Eventually docker times out the stop command and sends SIGKILL which causes everything to exit hard, and the AppImage doesn't get to clean up it's temp directory.
Possible workarounds:
- I can work around this by not using an appimage at all, but then I have to solve a cross distribution library issue.
- I could change the build system version of linux to be a closer match to the docker container, or
- I could make a script to help the user figure out the correct process to shutdown instead of using docker stop.
It would be nice, however, if appimages always acted the same with with respect to signals being passed through to the actual program, whether or not they are runing extracted or with fuse.
- 主要言語
- 言語のデータがありません
- スター
- 9.5k
- フォーク
- 586
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
AppImage/AppImageKit のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
AppImage/AppImageKit#1428 · リアクション 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
AppImage/AppImageKit#1164 · コメント 2 件 · リアクション 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
AppImage/AppImageKit#1452 · コメント 2 件 ·
-
request: silent modeオープン
難易度 3/5 1〜2日 初心者へのやさしさ 62/100
AppImage/AppImageKit#1450 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
AppImage/AppImageKit#1435 · コメント 2 件 ·
AppImage/AppImageKit の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
yetone/magpie#3737 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 63/100
raspberrypi/linux#7718 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
sameerasw/essentials#1579 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
easy enhancement help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
lacs-project/sysknife#682 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信