signal

svnadmin verify has caught signal message

Hi, I´m testing my repositories with svnadmin verify /folder/repositor. In some cases, doesn´t happen everytime in the same repository,I run this command and I get a message: Caught Signal. Anybody knows what is it? Thanks, Alexandre ...

Android emulator: disconnect GPS device from provider

I am developing a GPS enabled application on Android. There is no problem with the map display, but I want to test how my code would react to the situation in which the user enters a room, basement or a cave, so that the device would stop receiving any signal. My question is whether I can simulate this programatically or by using the DDM...

Determining which signal interrupted my system call (Linux)

After my system call has returned because it was interrupted by a signal, is there a way to determine exactly which signal type (i.e. child process termination) caused the interruption? ...

[Seamless Handover of WiFi] Can we program to automatically join the WiFi with the most strongest signal by no manual selection?

Hi all, I am making a iphone program, I wish that: it can sense and display the current signals of wifi, with strength, - as I checked, this cannot be done by official SDK, but there were some private library that can handle. 2. i wish it can always automatically join the best wifi with the most highest strength ( assume that all w...

How to send a signal SIGINT from script to script ? BASH

I want to trap a signal send from Script-A.sh to Script-B.sh so in Script-A.sh i use the command (Send SIGINT to Script-B.sh) kill -2 $PID_Script-B.sh And in Script-B.sh i catch the signal and call function Clean trap 'Clean' 2 It does not work, instead the Script-B.sh is killed right away without per...

How to propagate a signal through an arborescence of scripts ? Bash

I have an arborescence of scripts which are controlled by a main one I want to trap the signal ctrl-c in the main script and propagate it to the others The other scripts should trap this signal as well ( from the main script ) and do some clean-up ... I have tried to send kill -s SIGINT to the children, but they seem they are unable ...

detect sender of signal (linux, ptrace)

Hello Can I distinguish signal, between delivered directly to a process and delivered via debugger. Case 1: $ ./process1 process1 (not ptraced) //set up handler alarm(5); .... //signal is handled and I can parse handler parameters Case 2: $ debugger1 ./process1 process1 (is ptraced by debugger1) //set up handler alarm(5);...

Get signal names from numbers in Python

Is there a way to map a signal number (e.g. signal.SIGINT) to its respective name (i.e. "SIGINT")? I'd like to be able to print the name of a signal in the log when I receive it, however I cannot find a map from signal numbers to names in Python, i.e. import signal def signal_handler(signum, frame): logging.debug("Received signal (...

UNIX Signal lost

Hello, Is there any situation in which classic UNIX signals are lost? Thank you! ...

Signal amplitude against time in Java

I'm racking my brain in order to solve a knotty problem (at least for me). While playing an audio file (using Java) I want the signal amplitude to be displayed against time. I mean I'd like to implement a small panel showing a sort of oscilloscope (spectrum analyzer). The audio signal should be viewed in the time domain (vertical axis ...

Why is object destructor not called when script terminates ?

I have a test script like this: package Test; sub new { bless {} } sub DESTROY { print "in DESTROY\n" } package main; my $t = new Test; sleep 10; The destructor is called after sleep returns (and before the program terminates). But it's not called if the script is terminated with Ctrl-C. Is it possible to have the destructor called ...

Memory leak problem. iPhone SDK

Hello, i've got a problem, i cannot solve it, just recieving error: Program received signal: “0”. The Debugger has exited due to signal 10 (SIGBUS).The Debugger has exited due to signal 10 (SIGBUS). Here is some method, if i comment it out, problem goes aways - (void)loadTexture { const int num_tex = 10; glGenTextures(num_...

How to add a slot to my main window in Qt builder?

I am using Qt Builder to create a simple window. I used the menu editor to add a menu. Now, I figured out how to connect one of the menu items to the close() method of the main window. My problem is how to add a slot to the main window. Here is what I have: private slots: void OnAbout(); However, I can't get this method to show ...

How do I control widgets added later with gtk in c?

func1(); func2(); ... In func1 there is a button widget,and in func2 a textview widget.(Both calls gtk_box_pack_start to add widgets to the window, so the order can't be changed.) I want to operate textview when I click on button widget. But at the time I define the callback,textview is not available yet. How can I work around this?...

pcntl_signal(): Error assigning signal

Why happend this error: Warning: pcntl_signal(): Error assigning signal in ... In php5 in CLI, the line is: pcntl_signal(9,"signalHandlerTemp", false); I try with SIGKILL and true and nothing! ...

Calculate the Power Or Number Of Routing Signal

If i change place of Laptop from p1 to p2 , i need function in C++ or Java to calculate the amount or number or power of signals came from router. This function will help me to find the different in (amount Or number Or power) between two position , THANKS. ( Note : i am so sorry about first questions , because i have bad english , and...

Android - How to scan Access Points and select strongest signal?

I am currently trying to write a class in Android that will Scan for access points, calculate which access point has the best signal and then connect to that access point. So the application will be able to scan on the move and attach to new access points on the go. I have the scanning and calculation of the best signal working. But w...

Help Me: Loading Qt dialogs from python Scripts

Hello, im a novice into developing an application using backend as Python (2.5) and Qt(3) as front end GUI designer. I have 5 diffrent dialogs to implement the scripts. i just know to load the window (main window) from qt import * from dialogselectkernelfile import * from formcopyextract import * import sys if __nam...

How to send a signal ( or notification ) from MPI process to another on C?

Hello All, How can i make MPI process notify the others about an error for example, specially on an MPI program where all the MPI processees are independant from each others ( There no synchronisation between the different MPI processees ) ? Thanks ...

Android: How to receive process signals in an activity to kill child process ?

My application calls Runtime.exec() to launch an executable in a separate process at start up time. I would like this child process to get killed when the parent activity exits. Now I can use onDestroy() to handle regular cases, but not "Force quit", shutdowns from DDMS, or kill from the console since those don't run onDestroy(). The add...