[RFC PATCH 6/9] [squash] Use printargs_d for getpgrp decoding

Ákos Uzonyi uzonyi.akos at gmail.com
Sat Jun 27 17:20:53 UTC 2020


---
 getpid.c      | 5 -----
 linux/dummy.h | 1 +
 2 files changed, 1 insertion(+), 5 deletions(-)

diff --git a/getpid.c b/getpid.c
index 84c3ecf3..2d45d0d2 100644
--- a/getpid.c
+++ b/getpid.c
@@ -37,8 +37,3 @@ SYS_FUNC(setpgid)
 
 	return RVAL_DECODED;
 }
-
-SYS_FUNC(setpgrp)
-{
-	return RVAL_DECODED | RVAL_PGID;
-}
diff --git a/linux/dummy.h b/linux/dummy.h
index 989f1c0a..c8643285 100644
--- a/linux/dummy.h
+++ b/linux/dummy.h
@@ -106,6 +106,7 @@
 /* printargs_d does the right thing */
 # define sys_exit		printargs_d
 # define sys_nice		printargs_d
+# define sys_setpgrp            printargs_d
 # define sys_timer_delete	printargs_d
 # define sys_timer_getoverrun	printargs_d
 
-- 
2.27.0



More information about the Strace-devel mailing list