[yast-devel] Sending signals to background process
Hi, I've been working on a YaST module for a while now, and one of the things I needed to do was monitor a dd process running in the background, to provide a progress bar. Part of this involved sending Signal 10 (SIGUSR1) to dd to get it to print out the current progress - in doing this I added a function to ag_background called SigSubprocess, which is effectively a copy of the KillSubprocess function but it takes a parameter and sends that parameter as the signal to the background process. e.g. SCR::Execute(.background.sig, 10); I've included the patch here - is it possible to get this into the main source tree? I'm sure it would be useful in other circumstances... Cheers, KEv. -- Kevin James Applied Technology Senior Strategist Novell Global Enablement ------------------------ Novell, Inc. http://www.novell.com
Kevin James wrote: [...]
I've included the patch here - is it possible to get this into the main source tree? I'm sure it would be useful in other circumstances...
Thank you, I have submitted the patch into SVN repository (rev. 43834), it will be included in package yast2-core-2.16.23. (I changed the path from .sig to .signal - it's more understandable IMO.) -- Best Regards Ladislav Slezák Yast Developer ------------------------------------------------------------------------ SUSE LINUX, s.r.o. e-mail: lslezak@suse.cz Lihovarská 1060/12 tel: +420 284 028 960 190 00 Prague 9 fax: +420 284 028 951 Czech Republic http://www.suse.cz/ -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
participants (2)
-
Kevin James
-
Ladislav Slezak