2 Commits

Author SHA1 Message Date
ALEXks
184a83ee58 fixed 2023-12-06 12:02:15 +03:00
ALEXks
2540237e42 improved Sage, fixed dedlock 2023-12-06 12:01:00 +03:00

View File

@@ -2918,9 +2918,9 @@ private:
{
#ifdef _MSC_VER
ret = pipe(pipes, 1024 * 1024 * 20, O_BINARY); // 20 MB
#else
fcntl(pipes, F_SETPIPE_SZ, 1024 * 1024 * 20);
#else
ret = pipe(pipes) == -1;
fcntl(*pipes, F_SETPIPE_SZ, 1024 * 1024 * 20);
#endif
fd_blocked = (errno == EINTR || errno == EBUSY);
if (fd_blocked)