interim commit for qse_pio_t
- added QSE_KILL() - added qse_pio_kill() - enhanced qse_pio_wait()
This commit is contained in:
@ -12,6 +12,9 @@
|
||||
#ifdef HAVE_SYS_WAIT_H
|
||||
#include <sys/wait.h>
|
||||
#endif
|
||||
#ifdef HAVE_SIGNAL_H
|
||||
#include <signal.h>
|
||||
#endif
|
||||
|
||||
#if defined(QSE_USE_SYSCALL) && defined(HAVE_SYS_SYSCALL_H)
|
||||
#include <sys/syscall.h>
|
||||
@ -117,6 +120,12 @@
|
||||
#define QSE_WAITPID(pid,status,options) waitpid(pid,status,options)
|
||||
#endif
|
||||
|
||||
#ifdef SYS_kill
|
||||
#define QSE_KILL(pid,sig) syscall(SYS_kill,pid,sig)
|
||||
#else
|
||||
#define QSE_KILL(pid,sig) kill(pid,sig)
|
||||
#endif
|
||||
|
||||
#ifdef SYS_getpid
|
||||
#define QSE_GETPID() syscall(SYS_getpid)
|
||||
#else
|
||||
|
Reference in New Issue
Block a user