My program will not respond to a ctrl-c interrupt to terminate it's execution. I have my guesses but not really sure why. The program has no GUI but it utilizes signals/slots so I have a QApplication object to get to a "main loop." I have different app which does put up a "main window" and it responds just fine to the ctrl-C. Is the lack of a window the problem?
Here is the main:
Qt Code:
int main (int argc, char *argv[]) { ProcessMsgOperation pmo; return a.exec; }To copy to clipboard, switch view to plain text mode
The ProcessMsgOperation sets up some socket connections and a timer. Either when a socket msg or a timer event occurs it reads from a database and then posts a message to a socket.
Thanks,
Rick
Linux or HPUX 11.11
QT3.3.4
Threads
Bookmarks