diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2022-01-27 10:11:30 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2022-02-02 08:34:16 -0300 |
commit | 6289d28d3c4e56f34830cfb011c31271ef850418 (patch) | |
tree | 32d0c4d7af2c5a6a9d293a1ea05eb0d45313e450 /posix/Versions | |
parent | 3f35e7d193b7ff098467996ebf85b19c41d6d86e (diff) | |
download | glibc-6289d28d3c4e56f34830cfb011c31271ef850418.zip glibc-6289d28d3c4e56f34830cfb011c31271ef850418.tar.gz glibc-6289d28d3c4e56f34830cfb011c31271ef850418.tar.bz2 |
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 <carlos@redhat.com>
Tested-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'posix/Versions')
-rw-r--r-- | posix/Versions | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/posix/Versions b/posix/Versions index e4f4f64..3753810 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; |