kill now sends the signal to the main thread of a process only. To target a specific thread use the new send_signal syscall. Also added set_alarm.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1662 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -62,6 +62,7 @@ status_t sys_get_next_team_info(int32 *cookie, team_info *info);
|
||||
|
||||
int sys_kill(pid_t pid, int sig);
|
||||
int sys_sigaction(int sig, const struct sigaction *act, struct sigaction *oact);
|
||||
bigtime_t sys_set_alarm(bigtime_t time, uint32 mode);
|
||||
|
||||
region_id sys_vm_create_anonymous_region(const char *name, void **address, int addr_type,
|
||||
addr size, int wiring, int lock);
|
||||
|
||||
@@ -22,6 +22,7 @@ extern "C" {
|
||||
#include <vm.h>
|
||||
#include <smp.h>
|
||||
#include <signal.h>
|
||||
#include <timer.h>
|
||||
#include <arch/thread_struct.h>
|
||||
|
||||
extern spinlock_t thread_spinlock;
|
||||
@@ -96,6 +97,7 @@ struct thread {
|
||||
struct thread *all_next;
|
||||
struct thread *team_next;
|
||||
struct thread *q_next;
|
||||
timer alarm;
|
||||
thread_id id;
|
||||
char name[SYS_MAX_OS_NAME_LEN];
|
||||
int priority;
|
||||
|
||||
Reference in New Issue
Block a user