if (nativeFileActions != null) ((UnixLibC) libc()).posix_spawn_file_actions_destroy(nativeFileActions);
if (nativeSpawnAttributes != null) ((UnixLibC) libc()).posix_spawnattr_destroy(nativeSpawnAttributes);
}
if (result != 0) return -1; // result will be errno, but we can't indicate error because we return pid
return pid.longValue();
}
public int flock(int fd, int mode) {
return libc().flock(fd, mode);
}