• K
    [PATCH] add uevent_helper control in /sys/kernel/ · 0f76e5ac
    Kay Sievers 提交于
    This deprecates the /proc/sys/kernel/hotplug file, as all
    this stuff should be in /sys some day, right? :)
    In /sys/kernel/ we have now uevent_seqnum and uevent_helper.
    The seqnum is no longer used by udev, as the version for this
    kernel depends on netlink which events will never get
    out-of-order.
    
    Recent udev versions disable the /sbin/hotplug helper with
    an init script, cause it leads to OOM on big boxes by running
    hundreds of shells in parallel. It should be done now by:
      echo "" > /sys/kernel/uevent_helper
    
    (Note that "-n" does not work, cause neighter proc nor sysfs
    support truncate().)
    Signed-off-by: NKay Sievers <kay.sievers@suse.de>
    Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
    0f76e5ac
ksysfs.c 2.1 KB