diff options
| author | Chris Wright <chrisw@osdl.org> | 2004-06-17 17:56:32 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-06-17 17:56:32 -0700 |
| commit | 84f4d297ef3006d84ff35a0cedab2720e0bb5fd0 (patch) | |
| tree | 414348091f6c0ec4696e4f23990929b1e9de9635 /kernel | |
| parent | 63e9e5dcebd3b22b5b9e6670a9231bf005d63e06 (diff) | |
[PATCH] RLIM: add sigpending field to user_struct
Add sigpending field to user_struct, and make sure it's properly initialized.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/user.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/user.c b/kernel/user.c index 60e942b8f098..545e83fa9719 100644 --- a/kernel/user.c +++ b/kernel/user.c @@ -30,7 +30,8 @@ static spinlock_t uidhash_lock = SPIN_LOCK_UNLOCKED; 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 @@ struct user_struct * alloc_uid(uid_t uid) 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 |
