| To: | Christopher Smith <x@xxxxxxxx> |
|---|---|
| Subject: | Re: Finally got things right... ;-) (signals & threads in LInux) |
| From: | Andrew Morton <andrewm@xxxxxxxxxx> |
| Date: | Fri, 06 Apr 2001 11:30:32 -0700 |
| Cc: | kaio@xxxxxxxxxxx |
| References: | <7310000.986262802@hellman> <48140000.986380404@hellman> |
| Sender: | owner-kaio@xxxxxxxxxxx |
Very sane patch,IMO. Small bug:
+int kill_posix_vm_info(int sig, struct siginfo *info, struct mm_struct*
vm_ptr) {
+ int retval = -EINVAL;
+ if (vm_ptr != NULL) {
+ struct task_struct *p;
+
+ retval = -ESRCH;
+ read_lock(&tasklist_lock);
+ for_each_task(p) {
+ if (p->mm == vm_ptr) {
+ if (!sigismember(&(p->blocked), sig)) {
+ int err = send_sig_info(sig, info, p);
+
+ if (retval)
-->> if (err)
+ retval = err;
+ break;
+ }
+ }
+ }
+ read_unlock(&tasklist_lock);
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Question about AIO behavior...., Christopher Smith |
|---|---|
| Next by Date: | Re: Finally got things right... ;-) (signals & threads in LInux), Christopher Smith |
| Previous by Thread: | Re: Finally got things right... ;-) (signals & threads in LInux), Christopher Smith |
| Next by Thread: | Re: Finally got things right... ;-) (signals & threads in LInux), Christopher Smith |
| Indexes: | [Date] [Thread] [Top] [All Lists] |