[Qt-interest] unix SIGUSR1 signal on QT

Gigin Jose gigin_jose at yahoo.co.in
Thu Feb 10 10:44:22 CET 2011


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 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110210/0283dc6f/attachment.html 


More information about the Qt-interest-old mailing list