[RFC PATCH 06/15] [fix] Implement decoding setpgid and setpgrp
Ákos Uzonyi
uzonyi.akos at gmail.com
Mon Jun 1 11:44:35 UTC 2020
---
getpid.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/getpid.c b/getpid.c
index 43827cbe..84c3ecf3 100644
--- a/getpid.c
+++ b/getpid.c
@@ -28,3 +28,17 @@ SYS_FUNC(getsid)
return RVAL_DECODED | RVAL_SID;
}
+
+SYS_FUNC(setpgid)
+{
+ printpid(tcp, tcp->u_arg[0], PT_TGID);
+ tprints(", ");
+ printpid(tcp, tcp->u_arg[1], PT_PGID);
+
+ return RVAL_DECODED;
+}
+
+SYS_FUNC(setpgrp)
+{
+ return RVAL_DECODED | RVAL_PGID;
+}
--
2.26.2
More information about the Strace-devel
mailing list