This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
...Two small notes here: 1) You can actually call setenv("DISPLAY", value) inside the XWin process, which will be inherited by XWin's children.
(make that rlim_cur, closing 4 billion descriptors takes too long...)On Wed, Aug 06, 2003 at 01:06:55PM -0400, Harold L Hunt II wrote: >The for loop that you have is the way I have seen it done before. Me too. However, if you can find an API specification for something which does something similar in the Single Unix Specification, I'd be ...>> getrlimit(RLIMIT_NOFILE, &rl); >> for (i = STDERR_FILENO+1; i < rl.rlim_max; i++) >> (void) close(i); >>but that seems wasteful to iterate over rlim_max...
I'm attaching another diff (against test95 plain), be sure to so a "make Makefiles" and "make depend" before "make XWin.exe".
-Earle F. Philhower, III earle@ziplabel.com cdrlabel - ZipLabel - FlpLabel http://www.cdrlabel.com
Attachment:
xwinrc.diffs.2.bz2
Description: Binary data
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |