summaryrefslogtreecommitdiff
path: root/Kernel/Process.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-04-21 12:33:14 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-04-21 12:33:14 +0200
commita9d09e9020465e7baf7e727b4e933f25d1ce7aa5 (patch)
treed3e69b8888b974286111cad44de772f7cde784c3 /Kernel/Process.cpp
parent84f96c393c6d39908474202f10ea42cc569e0545 (diff)
downloadserenity-a9d09e9020465e7baf7e727b4e933f25d1ce7aa5.zip
Kernel: Get rid of the "cool globals" thingy.
This was something I used while debugging with Computron. I haven't needed it for months, so let's get rid of it. It's trivial to readd if needed.
Diffstat (limited to 'Kernel/Process.cpp')
-rw-r--r--Kernel/Process.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp
index c80b36cd39..ccfb0953c8 100644
--- a/Kernel/Process.cpp
+++ b/Kernel/Process.cpp
@@ -27,7 +27,6 @@
//#define TASK_DEBUG
//#define FORK_DEBUG
#define SIGNAL_DEBUG
-#define MAX_PROCESS_GIDS 32
//#define SHARED_BUFFER_DEBUG
static pid_t next_pid;
@@ -35,13 +34,8 @@ InlineLinkedList<Process>* g_processes;
static String* s_hostname;
static Lock* s_hostname_lock;
-CoolGlobals* g_cool_globals;
-
void Process::initialize()
{
-#ifdef COOL_GLOBALS
- g_cool_globals = reinterpret_cast<CoolGlobals*>(0x1000);
-#endif
next_pid = 0;
g_processes = new InlineLinkedList<Process>;
s_hostname = new String("courage");
@@ -1612,7 +1606,6 @@ int Process::sys$getgroups(ssize_t count, gid_t* gids)
{
if (count < 0)
return -EINVAL;
- ASSERT(m_gids.size() < MAX_PROCESS_GIDS);
if (!count)
return m_gids.size();
if (count != (int)m_gids.size())
@@ -1631,8 +1624,6 @@ int Process::sys$setgroups(ssize_t count, const gid_t* gids)
return -EINVAL;
if (!is_superuser())
return -EPERM;
- if (count >= MAX_PROCESS_GIDS)
- return -EINVAL;
if (!validate_read(gids, count))
return -EFAULT;
m_gids.clear();