Search Results

Search: Posts Made By: Tuvia
Forum: Programming 07-06-2008
28,380
Posted By Tuvia
The signal handler is declared after the fork....
The signal handler is declared after the fork. This is one of the first things that the child processes do after they are invoked. Should this be done before the fork?

Thanks, Tuvia
Forum: Programming 07-06-2008
28,380
Posted By Tuvia
This is the signal handler function: static...
This is the signal handler function:

static void handle_sigusr1()
{
if (DebugFile!=NULL) {
fwrite(DebugBuff.buff_ptr, DebugBuff.buff_len, 1, DebugFile);
...
Forum: Programming 07-03-2008
28,380
Posted By Tuvia
Usage of exit() inside a signal handler
Is it ok to use exit() inside a signal handler?
I catch SIGUSR1 in a signal handler and I try to close a file and then exit. The result is inconsistent. Sometimes the process exit and sometimes it...
Showing results 1 to 3 of 3

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