Merge "remove spurious ifdef POSIX_SPAWN_CLOEXEC_DEFAULT"

This commit is contained in:
Treehugger Robot 2022-05-02 14:30:53 +00:00 • committed by Gerrit Code Review
commit 6867bb686e

View file

@ -315,10 +315,7 @@ static jint com_android_server_connectivity_ClatCoordinator_startClatd(
// TODO: use android::base::ScopeGuard.
if (int ret = posix_spawnattr_setflags(&attr, POSIX_SPAWN_USEVFORK
#ifdef POSIX_SPAWN_CLOEXEC_DEFAULT
| POSIX_SPAWN_CLOEXEC_DEFAULT
#endif
)) {
| POSIX_SPAWN_CLOEXEC_DEFAULT)) {
posix_spawnattr_destroy(&attr);
throwIOException(env, "posix_spawnattr_setflags failed", ret);
return -1;