hotplug starts script as high priority process
Hi,
I'm using linux 2.6.11 on an ARM AT91RM9200 with hotplug-ng-001. On hotplug event, hotplug invokes a script called 99-usb2serial.hotplug as hig priority process. Is it possible to avoid this and instead run the script in normal priority?
regards,
Andreas
PID Uid VmSize Stat Command
1 root 156 S init
2 root SWN [ksoftirqd/0]
3 root SW< [events/0]
4 root SW< [khelper]
9 root SW< [kthread]
14 root SW< [kblockd/0] 22 root SW [khubd] 57 root SW [pdflush] 58 root SW [pdflush] 60 root SW< [aio/0] 59 root SW [kswapd0] 132 root SW [kseriod] 156 root SW [mtdblockd] 171 root SW< [rpciod/0] 193 root 628 S /sbin/inetd 215 andwalde 1152 S -bash 216 root 160 S /sbin/syslogd -n -m 0 217 root 124 S /sbin/klogd -n
363 root 248 S < usb2serial add /class/input/mouse0 usbmouse
365 andwalde 152 R ps
______________________________________________________________
Verschicken Sie romantische, coole und witzige Bilder per SMS! Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc1193
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 4 lines · Andreas Walden
I'm using linux 2.6.11 on an ARM AT91RM9200 with hotplug-ng-001. On hotplug event, hotplug invokes a script called 99-usb2serial.hotplug as hig priority process. Is it possible to avoid this and instead run the script in normal priority?
Add a setpriority(2) call to hotplug.c after the fork before the exec(3) of the child. Or try to use nice(1) in your script.
Kay
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel