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 --- NEWS | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'NEWS') diff --git a/NEWS b/NEWS index f26c3ba..119879e 100644 --- a/NEWS +++ b/NEWS @@ -129,10 +129,9 @@ Major new features: * On Linux, the epoll_pwait2 function has been added. It is similar to epoll_wait with the difference the timeout has nanoseconds resolution. -* The functions posix_spawnattr_tcsetpgrp_np and posix_spawnattr_tcgetpgrp_np - have been added, enabling posix_spawn and posix_spawnp to set the - controlling terminal in the new process in a race free manner. These - functions are GNU extensions. +* The function posix_spawn_file_actions_addtcsetpgrp_np has been added, + enabling posix_spawn and posix_spawnp to set the controlling terminal in + the new process in a race free manner. This function is a GNU extension. * Source fortification (_FORTIFY_SOURCE) level 3 is now available for applications compiling with glibc and gcc 12 and later. Level 3 leverages -- cgit v1.1