mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Kjohn Sasitorn <kjohn@cs.utexas.edu>
To: linux-kernel@vger.kernel.org
Cc: torvalds@transmeta.com
Subject: patch to exec_domain
Date: Wed, 24 Oct 2001 09:34:20 -0500	[thread overview]
Message-ID: <20011024093420.A6686@vampire.cs.utexas.edu> (raw)

Currently, the personality(2) system call always returns the previous
persona. However, according to the manpage, it should return the previous
persona when successful and -1 otherwise. The following patch to
lookup_exec_domain() should remedy this behavior:

--- kernel-source-2.4.12.orig/kernel/exec_domain.c      Thu Oct 18 09:12:47
2001
+++ kernel-source-2.4.12/kernel/exec_domain.c      Thu Oct 18 09:23:59 2001
@@ -100,7 +100,7 @@
     }
 #endif

-    ep = &default_exec_domain;
+    ep = NULL;
 out:
     read_unlock(&exec_domains_lock);
     return (ep);


Kjohn Sasitorn
kjohn@cs.utexas.edu

             reply	other threads:[~2001-10-24 14:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-24 14:34 Kjohn Sasitorn [this message]
2001-10-24 10:12 ` Paul Larson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20011024093420.A6686@vampire.cs.utexas.edu \
    --to=kjohn@cs.utexas.edu \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®