The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
1

SIGINT is not delivered to processed launched from dmenu

asked Dec 28 '14

sergej gravatar image

updated Dec 28 '14

Hello!

I've found strange behavior of processes launched from dmenu. Here are the steps to reproduce: 1. Launch sleep 1000000 using dmenu. The key combination for dmenu is Win-D on my system. I believe Alt-D is the default one. 2. Execute pgrep sleep from shell to get a pid for process launched in step 1. 3. Execute kill -2 $(pgrep sleep). 4. Nothing happened. The sleep 1000000 process is still running.

kill -2 is working perfectly when I run sleep 1000000 process from shell.

What kind of magic is done by dmenu to block SIGINT from being delivered to processes? Is there any way to disable it?

PS. I'm using i3 metapackage of version 4.7.2-1 in Ubuntu 14.0.4.

Further investigation shows that dmenu isn't guilty. I've created sleep-999999 script with sleep 999999 & and put exec sleep-999999 on a hotkey in ~/.i3/config. This setup reproduces strange behavior described formerly.

1 answer

Sort by » oldest newest most voted
0

answered Dec 28 '14

sergej gravatar image

The answer is here: git.savannah.gnu.org/cgit/bash.git/tree/jobs.c#n1728

bash masks out SIGINT for background processes.

Question Tools

1 follower

Stats

Asked: Dec 28 '14

Seen: 339 times

Last updated: Dec 28 '14