追加

clear_tmp_X="YES"
Clear and recreate X11-related directories in /tmp

commit log

Brooks pointed out a potential problem with disabling the X cleaning by default, so add a new knob that is on by default, and check that knob in start_precmd so that it can run even if cleaning /tmp is not enabled. This has the advantage of not violating POLA, while still allowing the user to disable this behavior if they wish (for example on a server that will never run X).
$FreeBSD: src/etc/defaults/rc.conf,v 1.269 2005/12/20 20:36:48 dougb Exp $
$FreeBSD: src/etc/defaults/rc.conf,v 1.252.2.13 2006/01/17 07:02:04 dougb Exp $