mirror of
https://github.com/0intro/wmii
synced 2024-11-22 13:52:17 +03:00
Go back to closeexec. This was my fault, not xcb's.
This commit is contained in:
parent
6563332c9f
commit
907a245f5f
@ -141,10 +141,14 @@ fn wi_seltag {
|
||||
wmiir read /tag/sel/ctl | sed 1q
|
||||
}
|
||||
|
||||
fn wi_readevent {
|
||||
wmiir read /event
|
||||
}
|
||||
|
||||
fn wi_eventloop {
|
||||
wi_initkeys
|
||||
|
||||
wmiir read /event |
|
||||
wi_readevent |
|
||||
while(ifs=$wi_nl{wi_event=`{read}}) {
|
||||
ifs=$wi_nl{
|
||||
wi_arg=`{echo $wi_event | sed 's/^[^ ]+ //'}}
|
||||
|
@ -287,8 +287,6 @@ spawn_command(const char *cmd) {
|
||||
if(doublefork() == 0) {
|
||||
if(setsid() == -1)
|
||||
fatal("Can't setsid: %r");
|
||||
/* Was closeexeced, but Xlib-xcb doesn't like it. */
|
||||
close(ConnectionNumber(display));
|
||||
|
||||
shell = passwd->pw_shell;
|
||||
if(shell[0] != '/')
|
||||
@ -370,10 +368,7 @@ main(int argc, char *argv[]) {
|
||||
sock = ixp_announce(address);
|
||||
if(sock < 0)
|
||||
fatal("Can't create socket '%s': %r", address);
|
||||
/* Grr! Xlib-xcb doesn't like this in the least.
|
||||
* And I thought XF86 Xlib was bad... *sigh*
|
||||
closeexec(ConnectionNumber(display));
|
||||
*/
|
||||
closeexec(sock);
|
||||
|
||||
if(wmiirc)
|
||||
|
Loading…
Reference in New Issue
Block a user