From 6289d28d3c4e56f34830cfb011c31271ef850418 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Thu, 27 Jan 2022 10:11:30 -0300 Subject: posix: Replace posix_spawnattr_tc{get,set}pgrp_np with posix_spawn_file_actions_addtcsetpgrp_np The posix_spawnattr_tcsetpgrp_np works on a file descriptor (the controlling terminal), so it would make more sense to actually fit it on the file actions API. Also, POSIX_SPAWN_TCSETPGROUP is not really required since it is implicit by the presence of tcsetpgrp file action. The posix/tst-spawn6.c is also fixed when TTY can is not present. Checked on x86_64-linux-gnu and i686-linux-gnu. Reviewed-by: Carlos O'Donell Tested-by: Carlos O'Donell --- posix/Versions | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'posix/Versions') diff --git a/posix/Versions b/posix/Versions index e4f4f649b0..3753810864 100644 --- a/posix/Versions +++ b/posix/Versions @@ -157,8 +157,7 @@ libc { posix_spawn_file_actions_addclosefrom_np; } GLIBC_2.35 { - posix_spawnattr_tcgetpgrp_np; - posix_spawnattr_tcsetpgrp_np; + posix_spawn_file_actions_addtcsetpgrp_np; } GLIBC_PRIVATE { __libc_fork; __libc_pread; __libc_pwrite; -- cgit v1.2.3