Hi all,
I need handle the SIGSEGV in my Linux app. The reason is some clean up(3-partry lib) must be done before generate core-dump. What is more, the clean up must be performed in the context of calling thread, cannot do in signal handler.
So I plan in signal handler to pass the control to the calling thread, after the clean up fini...
How does Django's event routing system work?
...
Hello, i would like to log every crash of my application...
so i've tried to catch all signals. But it seems not working for "EXC_BAD_ACCESS"
Someone know... If is it possible to catch it ? And how ?
...
Hello, I want to save boost signals objects in the map (association: signal name → signal object). The signals signature is different, so the second type of map should be boost::any.
map<string, any> mSignalAssociation;
The question is how to store objects without defining type of new signal signature?
typedef boost::signals2::signal...
Hi I have a problem with this code. When i am using this function I have no warnings. :
void handler(int sig){
switch(sig) {
case SIGINT : { click++; fprintf(stdout,"SIGINT recu\n");
if( click == N){
exit(0);
}
}
case SIGALRM : fprin...
i got this thread.h file;
#ifndef THREAD_H
#define THREAD_H
#include <QtGui>
#include <QString>
#include <tray.h>
class svThread : public QThread {
public:
bool getIsPaused();
void checkSettings();
virtual void run();
void setPause(bool);
signals:
void mySignal(bool);
};
#endif // THREAD_H...
I recorded a radio signal into a .wav, I can open it in audacity and see that there is binary data encoded using a certain algorithm. Does anyone know of a way to process the signal that is contained within the .wav? so that i can extract the binary data from it?
I know that I need to know the encoding algorithm for it to work properly,...
Howdy,
I've written a python script which does some curses and pysqlite stuff, but I've noticed that in occasions where I've been running this script over ssh when that ssh session is killed for whatever reason the python script doesn't actually exit, instead it ends up as being a child of init and just stays there forever. I can't kill...
Hi, I have a small problem that I don't know how to solve.
I have a program which is basically commanded by inputs in stdin. It just keeps running until receives a particular string and then do something else. Ok, I don't have access to the code that controls these inputs but I would like to add a new command.
The idea I have is the fo...
What is signal behavior in the fork.
Should all signals are inherited in fork If not then which one and why?
...
My python script intercepts the SIGINT signal with the signal process module to prevent premature exit, but this signal is passed to a subprocess that I open with Popen. is there some way to prevent passing this signal to the subprocess so that it also is not exited prematurely when the user presses ctrl-c?
...
I am currently using select() to act as a timer. I have network receive operations which occur within a loop, and every few seconds a processing operation needs to occur.
As a result, the select() statement's timeout constantly changes -- decreasing to zero over time and then restarting at 3.
rv = select(selectmonitor+1, &readnet, NULL...
I'm wanting a paradigm in a Qt4 (PyQt4) program where a component is able to respond to a signal without knowing anything about where it is coming from.
My intial reading suggests that I have to explicitly connect signals to slots. But what I want is for any of a number of components to be able to send a signal, and for it to be proce...
I've written an unhandled error module for my iPhone app, but for some reason some errors are managing to bypass it.
I have an exception handler and the following signal handlers set:
NSSetUncaughtExceptionHandler(&handleException);
signal(SIGILL, handleSignal);
signal(SIGABRT, handleSignal);
signal(SIGFPE, handleSignal);
signal(SIGBUS...
It seems that when BSD signals are converted to thrown exceptions, it only work the first time but not subsequent times.
I tried to convert signals to exception via the following call I made in the main method just before calling NSApplicationMain :
[[NSExceptionHandler defaultExceptionHandler] setExceptionHandlingMask:NSHandleUncaught...
I want to read serial COM port and to write the data to a file in LINUX. Actually I'm sending data from hyperterminal from other PC.
The problem is without while loop I can write only one line.
But with while(1) loop I can't write anything to file.
Or else I have to send BIG file, then application exits/terminates and writes to the fi...
can i connect two objects that are in different classes ?
lets say i want button1's clicked() signal to clear line2
class A(QGroupBox):
def __init__(self, parent=None):
super(A, self).__init__(parent)
self.button1= QPushButton('bt1')
self.button1.show()
class B(QGroupBox):
def __init__(self, parent=Non...
Hi,
I'm building an interface using glade and gtk programming on c using netbeans. I've set up my project following http://zetcode.com/articles/netbeanscdevelopment/. I even added libgmodule2-0.so and libglib2-0.so to the linker options of netbeans. When I run i get the warning Gtk-WARNING Could not find signal handle. When I close the...
A valuable answer will include the rpg code that does something like this
volatile bool interrupted;
main() {
sigaction(SIG_ALARM, myhandler) // register handler
alarm(3) // set the alarm
sleep(5) // blocking call, sleep just as an example.
alarm(0) // disable the alarm
}
myHandler() {
interrupted=true
}
I think you've got t...
We have a c++ application (console) that runs on windows and unix.
This application used output files to output verbose log files of system calls/prints/etc.
The prblem is, that in certain occasion we might get signal 11/2 after new features are added.
Now whenever, that happenes, we do not get 'almost complete' information from log f...