Use the raise function:
int ret;
ret = raise(SIGTERM);
More Related Contents:
- Program gives unstable output? [closed]
- How to prevent SIGPIPEs (or handle them properly)
- Catch Ctrl-C in C
- How to send EOF via Windows terminal
- POSIX threads and signals
- Segmentation fault handling
- Listing directory contents using C and Windows
- Signal handling with multiple threads in Linux
- C – create file in memory
- How can I do a CPU cache flush in x86 Windows?
- Sharing memory between two processes (C, Windows)
- How to overcome Stack Size issue with Visual Studio (running C codes with big array)
- system(“cd “) in a C program
- Safely remove a USB drive using the Win32 API?
- Sleep function in Windows, using C
- Using sys/socket.h functions on windows
- WinVerifyTrust to check for a specific signature?
- error C4996: ‘scanf’: This function or variable may be unsafe in c programming
- Does linux allow any system call to be made from signal handlers?
- How to build a DLL from the command line in Windows using MSVC
- Providing/passing argument to signal handler
- winapi: CreateProcess but hide the process’ window?
- LoadLibrary() an EXE?
- What does a “CALLBACK” declaration in C do?
- Copying content from a hidden or clipped window in XP?
- Checking if errno != EINTR: what does it mean?
- Regex.h for windows
- How to get the %AppData% folder in C?
- How to make win32 console recognize ANSI/VT100 escape sequences in `c`?
- Execute program capturing screenshots from windows service