summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sim/process.hh2
-rw-r--r--src/sim/syscall_emul.cc4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/sim/process.hh b/src/sim/process.hh
index 23ed6d661..ae23de420 100644
--- a/src/sim/process.hh
+++ b/src/sim/process.hh
@@ -87,8 +87,8 @@ class Process : public SimObject
inline uint64_t pid() { return _pid; }
inline uint64_t ppid() { return _ppid; }
inline uint64_t pgid() { return _pgid; }
+ inline void pgid(uint64_t pgid) { _pgid = pgid; }
inline uint64_t tgid() { return _tgid; }
- inline void setpgid(uint64_t pgid) { _pgid = pgid; }
const char *progName() const { return executable.c_str(); }
diff --git a/src/sim/syscall_emul.cc b/src/sim/syscall_emul.cc
index 088dcbcce..f2f4f276f 100644
--- a/src/sim/syscall_emul.cc
+++ b/src/sim/syscall_emul.cc
@@ -1001,7 +1001,7 @@ setpgidFunc(SyscallDesc *desc, int callnum, ThreadContext *tc)
return -EINVAL;
if (pid == 0) {
- process->setpgid(process->pid());
+ process->pgid(process->pid());
return 0;
}
@@ -1020,7 +1020,7 @@ setpgidFunc(SyscallDesc *desc, int callnum, ThreadContext *tc)
}
assert(matched_ph);
- matched_ph->setpgid((pgid == 0) ? matched_ph->pid() : pgid);
+ matched_ph->pgid((pgid == 0) ? matched_ph->pid() : pgid);
return 0;
}