Cloudef / bemenu

Dynamic menu library and client program inspired by dmenu
GNU General Public License v3.0
1.16k stars 90 forks source link

Move SIGCHLD handler #391

Closed ndren closed 3 months ago

ndren commented 3 months ago

SIG_DFL on SIGCHLD prevents proper functioning of pclose, which the new version of the pasting functionality requires.

Closes https://github.com/Cloudef/bemenu/issues/385

Ref: https://stackoverflow.com/questions/54189212/popen-returns-1-unexpectedly

ndren commented 3 months ago

Force pushed to clean up the commit history.

Please let me know if this is the right approach, thanks!

Cloudef commented 3 months ago

Perhaps this code should be moved to the launch function instead of removed

ndren commented 3 months ago

I have moved it, thanks for the suggestion!

Cloudef commented 3 months ago

Thanks