sigint Questions

1

I am designing a script to launch a process inside a named screen session. as_user "screen -p 0 -S **$command** -X eval 'stuff \"wine LFS.exe /cfg=**$command**.cfg\"\015'" So bash myscript.sh st...
Nosology asked 14/4, 2013 at 16:48

3

Solved

I am using supervisord to spawn and manage a FastCGI application that I am writing in C for a linux target. I have a signal handler that gracefully exits my application when SIGINT is received. I h...
Thwart asked 20/8, 2010 at 17:34

2

Ctrl-c (SIGINT/SIGTERM) stopped working in cygwin. If I recall, this might have something to do with TTY settings. Please advise on how to get it working again. I did not change anything intentiona...
Lithosphere asked 16/4, 2012 at 7:52

2

Solved

I have been studying signals in Linux. And I've done a test program to capture SIGINT. #include <unistd.h> #include <signal.h> #include <iostream> void signal_handler(int signal_n...
Merrow asked 26/5, 2012 at 11:58

2

Solved

Does the signal() function overwrite other signal calls a process might have set up? I.e. if a SIGINT handler has been setup by a process, and a DLL calls signal(SIGINT,xxx) to handle its own termi...
Reposition asked 22/5, 2012 at 12:4

2

In a multithreaded Python program, one thread sometimes asks for console input using the built-in raw_input(). I'd like to be able to be able to close the program while at a raw_input prompt by typ...
Civilize asked 13/2, 2012 at 22:59

2

Solved

I am unable to trap a signal when running in a child / background process. Here is my simple bash script: #!/bin/bash echo "in child" trap "got_signal" SIGINT function got_si...
Obscurity asked 13/4, 2011 at 0:26

2

Solved

I have been debugging a Python program which segfaults after receiving a KeyboardInterrupt exception. This is normally done by pressing Ctrl+C from the shell. To test if a particular code change fi...
Capparidaceous asked 6/12, 2011 at 11:2

3

Solved

A little background first - When I do apt-get install downloads from my company internet it provides a high burst of speed (400-500KB/s) for the first 10 seconds or so before dropping down to a ten...
Castle asked 8/7, 2011 at 12:46

1

Solved

I am writing a multithreaded program where I want to handle a possible Ctrl-C command from the user to terminate execution. As far as I know there is no guarantee that the main thread, which is abl...
Ipsus asked 6/6, 2011 at 9:36

3

Solved

I have a Perl script that forks. Each fork runs an external program, parses the output, and converts the output to a Storable file. The Storable files are then read in by the parent and the total...
Manrope asked 17/1, 2011 at 19:42

3

Solved

I have a class with a user-defined destructor. If the class was instantiated initially, and then SIGINT is issued (using CTRL+C in unix) while the program is running, will the destructor be called?...
Lugansk asked 22/11, 2010 at 20:37

3

alright, so i'm using a sighandler to interpret some signal, for this purpose it is Ctrl+C, so when Ctrl+C is typed some action will be taken, and everything is fine and dandy, but what I really ne...
Ahn asked 17/11, 2010 at 3:47

4

Solved

How do I catch a Ctrl+C event in C++?
Meistersinger asked 29/10, 2009 at 1:39

4

Solved

I have a program running on a remote machine which expects to receive SIGINT from the parent. That program needs to receive that signal to function correctly. Unfortunately, if I run that process r...
Percentile asked 2/10, 2009 at 22:37

1

I've got a Python script managing a gdb process on Windows, and I need to be able to send a SIGINT to the spawned process in order to halt the target process (managed by gdb) It appears that ther...
Castellano asked 8/7, 2009 at 0:34

© 2022 - 2024 — McMap. All rights reserved.