On Thursday 30 March 2006 23:03, Blaisorblade wrote: > On Wednesday 29 March 2006 22:38, Anthony Brock wrote: > > Quoting Jeff Dike <[EMAIL PROTECTED]>: > > > On Wed, Mar 29, 2006 at 12:40:00AM +0200, Blaisorblade wrote: > > >> Finally, I'd like to get devshm merged if there aren't problems with > > >> the code.
(Jeff wrote): > > That one needs to check if /dev/shm is present, and fall back to /tmp > > if not. I'd add that it needs to retry even if the PROT_EXEC test fails: *) if TMP, TEMP or TMPDIR are set, use that and fail if the check fails, abort, because the user wanted to use that but forgot to change permissions. *) if instead we pick /dev/shm but it has not PROT_EXEC, we should switch to /tmp and fail only then. > > Are you proposing that virtual servers automatically using /dev/shm if > > available and only falling back to the $TMP variable and /tmp directory > > if not? Or would this keep the use of $TMP if present and fall back to > > /dev/shm followed by /tmp? > By looking at: > http://user-mode-linux.sourceforge.net/work/current/2.6/2.6.16/patches/devs >hm Sorry, forgot to finish. That patch keeps checking TMP,TMPDIR and TEMP (don't remember the order), but if none is set, it switches the default from /tmp to /dev/shm. -- Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!". Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894) http://www.user-mode-linux.org/~blaisorblade ___________________________________ Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB http://mail.yahoo.it ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ User-mode-linux-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
