diff options
author | Russ Cox <rsc@swtch.com> | 2008-07-01 07:39:10 -0400 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2008-07-01 07:39:10 -0400 |
commit | b61a5ce81e17c77c4a8e9869f33d41f6facc6a9d (patch) | |
tree | 5fd625d6331c0dc2f249b75ddfd1f0d033f6f632 | |
parent | b65a69c1926434df597e2418c98e362a611463ea (diff) | |
download | plan9port-b61a5ce81e17c77c4a8e9869f33d41f6facc6a9d.tar.gz plan9port-b61a5ce81e17c77c4a8e9869f33d41f6facc6a9d.tar.bz2 plan9port-b61a5ce81e17c77c4a8e9869f33d41f6facc6a9d.zip |
libdraw: do not let devdraw fork, for OS X
-rw-r--r-- | src/libdraw/drawclient.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libdraw/drawclient.c b/src/libdraw/drawclient.c index 5e9c950d..f3c42b80 100644 --- a/src/libdraw/drawclient.c +++ b/src/libdraw/drawclient.c @@ -42,8 +42,12 @@ _displayconnect(Display *d) * The argv0 has no meaning to devdraw. * Pass it along only so that the various * devdraws in psu -a can be distinguished. + * The NOLIBTHREADDAEMONIZE keeps devdraw from + * forking before threadmain. OS X hates it when + * guis fork. */ - execl("devdraw", argv0, argv0, nil); + putenv("NOLIBTHREADDAEMONIZE", "1"); + execl("devdraw", argv0, argv0, "(devdraw)", nil); sysfatal("exec devdraw: %r"); } close(p[1]); |