The i3 FAQ has migrated to All content here is read-only.
Ask Your Question

SIGINT is not delivered to processed launched from dmenu

asked 2014-12-28 17:37:05 +0000

sergej gravatar image

updated 2014-12-28 18:01:46 +0000


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.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-12-28 18:49:28 +0000

sergej gravatar image

The answer is here:

bash masks out SIGINT for background processes.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2014-12-28 17:37:05 +0000

Seen: 339 times

Last updated: Dec 28 '14