Merge "remove spurious ifdef POSIX_SPAWN_CLOEXEC_DEFAULT"
This commit is contained in:
commit
6867bb686e
1 changed files with 1 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue