[Qt-interest] unix SIGUSR1 signal on QT

Brian McGillion brian.mcgillion at symbio.com
Thu Feb 10 11:31:11 CET 2011


Hi,

http://doc.qt.nokia.com/4.7-snapshot/unix-signals.html

Br,
Brian


> Hi, 
> I am working on ARM based embedded target with linux 2.6.30.4. I am
> sending a signal from C code as mentioned :
>
> kill(pidOf("main"),SIGUSR1); 
> The function pidOf returns the process ID of a process running on the unix
> machine. Whenever I execute my above code, it is sendinh signal to the
> "main" program and I am getting the printf signal mentioned in the signal
> handler of main program. The main.c is given below:void mysignal(int i
> ){printf("Signal is Called\n");
> }void main(){signal(SIGUSR1,mysignal);while(1) sleep(10);return;}
>
>
> Is it possible that I can receive the same signal
> (kill(pidOf("main"),SIGUSR1); ) from a QT application so that any given
> slot is called once the signal is received. 
> With RegardsGIGIN 
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
>





More information about the Qt-interest-old mailing list