signals
Boost.asio & UNIX signal handling
Preface I have a multi-threaded application running via Boost.Asio. There is only one boost::asio::io_service for the whole application and all the things are done inside it by a group of threads. So[详细]
2023-04-06 15:48 分类:问答SIGCHLD handling Beej's Guide example
here is the code void sigchld_handler(int s) { while(waitpid(-1, NULL, WNOHANG) > 0); } // get sockaddr, IPv4 or IPv6:[详细]
2023-04-06 14:35 分类:问答Perl trapping Ctrl-C (sigint) in bash
I\'m reading How do we capture CTRL ^ C - Perl Monks, but I cannot seem to get the right info to help with my problem.[详细]
2023-04-06 11:23 分类:问答Optimal signal strength and quality
I\'m currently developing an application to reset your phone signal when the quality drops too low and I was wondering what the minimal Strength (dBm) requirement is to have a decent signal.[详细]
2023-04-06 03:27 分类:问答EventHandler type with no event args
When we want to pass data to an event subscriber, we use EventArgs (or CustomEventArgs) for this. .Net provides a build in type EventHandler that uses as a parameter an instance of EventArgs class th[详细]
2023-04-05 18:32 分类:问答Xcode: GDB and signal handlers
I\'m using signal handlers in an Objective-C application to catch fatal errors, as SIGSEGV, SIGBUS and the like.[详细]
2023-04-05 06:03 分类:问答Restoring original signal in sigaction
I have sigaction defined and it works fine. However I want to restore the original signal after my act开发者_StackOverflowion is completed. This is my sigaction:[详细]
2023-04-05 02:59 分类:问答programe received signal SIGIO
I see following开发者_Python百科 error in my Nginx\'s error.log, [notice] 12451#0: signal 29 (SIGIO) received[详细]
2023-04-04 14:48 分类:问答How to add code to the standard signal handler?
I have a C application running on Linux where I need to add some code to the standard signal handler. The idea was to setup my handler saving the pointer to the standard one and call the saved handler[详细]
2023-04-04 12:04 分类:问答Windows handling CTRL+C in different thread?
Here is a simple application that handled CTRL+C signal both on linux and windows: #include <QtCore/QCoreApplication>[详细]
2023-04-04 09:02 分类:问答