diff options
author | rsc <devnull@localhost> | 2005-01-23 16:02:04 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-01-23 16:02:04 +0000 |
commit | a0e8d02d093e01fdadf8a16bc86fe18b0c4e82c3 (patch) | |
tree | 819b464ae0d8991c3b881ece91d4b6e4f1c3ef54 /src/libdraw/x11-itrans.c | |
parent | 8327d419814d5ccfa9c005b371267d783f585177 (diff) | |
download | plan9port-a0e8d02d093e01fdadf8a16bc86fe18b0c4e82c3.tar.gz plan9port-a0e8d02d093e01fdadf8a16bc86fe18b0c4e82c3.tar.bz2 plan9port-a0e8d02d093e01fdadf8a16bc86fe18b0c4e82c3.zip |
Apparently SuSE 9.1's X distribution uses even bigger
buffers than the standard ones. 64kB appears to be enough
for a stack in that case, but let's just go nuts and make
the stacks enormous, so that it takes a few more doublings
of X's stack needs before we run into this problem again.
The VM system should take care of not actually using most
of the memory anyway.
Diffstat (limited to 'src/libdraw/x11-itrans.c')
-rw-r--r-- | src/libdraw/x11-itrans.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libdraw/x11-itrans.c b/src/libdraw/x11-itrans.c index f1c72ee9..8b1c1376 100644 --- a/src/libdraw/x11-itrans.c +++ b/src/libdraw/x11-itrans.c @@ -21,7 +21,8 @@ __xtoplan9kbd(XEvent *e) if(e->xany.type != KeyPress) return -1; - needstack(20*1024); /* X has some *huge* buffers in openobject */ + needstack(64*1024); /* X has some *huge* buffers in openobject */ + /* and they're even bigger on SuSE */ XLookupString((XKeyEvent*)e,NULL,0,&k,NULL); if(k == XK_Multi_key || k == NoSymbol) return -1; |