diff --git a/src/system/libroot/posix/spawn.cpp b/src/system/libroot/posix/spawn.cpp index 111c089b46..2e036667bd 100644 --- a/src/system/libroot/posix/spawn.cpp +++ b/src/system/libroot/posix/spawn.cpp @@ -430,7 +430,7 @@ process_spawnattr(const posix_spawnattr_t *_attr) } if ((attr->flags & POSIX_SPAWN_SETSID) != 0) { - if (setsid() != 0) + if (setsid() < 0) return errno; }