• Kay Sievers's avatar
    [PATCH] add uevent_helper control in /sys/kernel/ · 0f76e5ac
    Kay Sievers authored
    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: default avatarKay Sievers <kay.sievers@suse.de>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    0f76e5ac
ksysfs.c 2.08 KB