tools/nolibc: add setpgrp()
setpgrp() is defined to be identical to setpgid(0, 0). Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de> Acked-by: Willy Tarreau <w@1wt.eu>
This commit is contained in:
committed by
Thomas Weißschuh
parent
7b11531ed1
commit
67fe525e34
@@ -952,6 +952,16 @@ int setpgid(pid_t pid, pid_t pgid)
|
||||
return __sysret(sys_setpgid(pid, pgid));
|
||||
}
|
||||
|
||||
/*
|
||||
* pid_t setpgrp(void)
|
||||
*/
|
||||
|
||||
static __attribute__((unused))
|
||||
pid_t setpgrp(void)
|
||||
{
|
||||
return setpgid(0, 0);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* pid_t setsid(void);
|
||||
|
||||
Reference in New Issue
Block a user