Search Results

Search: Posts Made By: joha
Forum: Programming 07-30-2009
25,768
Posted By joha
But I only use Python for a small part of my...
But I only use Python for a small part of my program. I need SIGINT to work when I'm in the C part of my code also.
Forum: Programming 07-29-2009
25,768
Posted By joha
I'm using the kill function (man 2 kill). I...
I'm using the kill function (man 2 kill). I wrote a C function to grab the PID from test.RUN, write the action file, and send SIGUSR1. I call this from a separate Python process.

The Python...
Forum: Programming 07-29-2009
25,768
Posted By joha
I have removed the mask and switched to...
I have removed the mask and switched to sigaction. The SIGINT problem still exists.

If I send SIGINT, then send SIGUSR1 and start using Python, it interrupts the Python instead of the C (even if...
Forum: Programming 07-29-2009
25,768
Posted By joha
Here is the code: #include <Python.h> ...
Here is the code:


#include <Python.h>
#include <stdio.h>
#include <sys/types.h>
#include <signal.h>
#include <unistd.h>
#include <stdlib.h>

#define MAX_STR_LEN 255

void catch_int(int...
Forum: Programming 07-29-2009
25,768
Posted By joha
OK, I have decided to just send SIGUSR1 and read...
OK, I have decided to just send SIGUSR1 and read instructions from a file.

However, once receiving SIGUSR1, I can no longer send SIGINT to stop the process. It breaks out of my sleep or pause...
Forum: Programming 07-27-2009
25,768
Posted By joha
Is it possible to have more than 2 user-defined...
Is it possible to have more than 2 user-defined signals?
Forum: Programming 07-27-2009
25,768
Posted By joha
Defining Custom Signal
Is it possible to send a custom signal to a process?

e.g. Send signal 9999 to my process, which handles it with some custom handler.

How would one do this?
Showing results 1 to 7 of 7

 
All times are GMT -4. The time now is 05:48 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy