[PATCH 2/11] add sigpending field to user_struct
From: Chris Wright
Date: Tue May 11 2004 - 03:49:01 EST
Add sigpending field to user_struct, and make sure it's properly
initialized.
===== include/linux/sched.h 1.210 vs edited =====
--- 1.210/include/linux/sched.h Mon May 10 04:25:34 2004
+++ edited/include/linux/sched.h Mon May 10 18:22:10 2004
@@ -314,6 +314,7 @@
atomic_t __count; /* reference count */
atomic_t processes; /* How many processes does this user have? */
atomic_t files; /* How many open files does this user have? */
+ atomic_t sigpending; /* How many pending signals does this user have? */
/* Hash table maintenance information */
struct list_head uidhash_list;
===== kernel/user.c 1.9 vs edited =====
--- 1.9/kernel/user.c Mon May 10 04:25:43 2004
+++ edited/kernel/user.c Mon May 10 18:22:10 2004
@@ -30,7 +30,8 @@
struct user_struct root_user = {
.__count = ATOMIC_INIT(1),
.processes = ATOMIC_INIT(1),
- .files = ATOMIC_INIT(0)
+ .files = ATOMIC_INIT(0),
+ .sigpending = ATOMIC_INIT(0),
};
/*
@@ -108,6 +109,7 @@
atomic_set(&new->__count, 1);
atomic_set(&new->processes, 0);
atomic_set(&new->files, 0);
+ atomic_set(&new->sigpending, 0);
/*
* Before adding this, check whether we raced
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/