зеркало из https://github.com/github/ruby.git
process.c: adjust indent [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
78a2a1be76
Коммит
62870d2c73
18
process.c
18
process.c
|
@ -292,16 +292,16 @@ assert_close_on_exec(int fd)
|
|||
{
|
||||
#if VM_CHECK_MODE > 0
|
||||
#if defined(HAVE_FCNTL) && defined(F_GETFD) && defined(FD_CLOEXEC)
|
||||
int flags = fcntl(fd, F_GETFD);
|
||||
if (flags == -1) {
|
||||
static const char m[] = "reserved FD closed unexpectedly?\n";
|
||||
(void)write(2, m, sizeof(m) - 1);
|
||||
return;
|
||||
}
|
||||
if (flags & FD_CLOEXEC) return;
|
||||
rb_bug("reserved FD did not have close-on-exec set");
|
||||
int flags = fcntl(fd, F_GETFD);
|
||||
if (flags == -1) {
|
||||
static const char m[] = "reserved FD closed unexpectedly?\n";
|
||||
(void)write(2, m, sizeof(m) - 1);
|
||||
return;
|
||||
}
|
||||
if (flags & FD_CLOEXEC) return;
|
||||
rb_bug("reserved FD did not have close-on-exec set");
|
||||
#else
|
||||
rb_bug("reserved FD without close-on-exec support");
|
||||
rb_bug("reserved FD without close-on-exec support");
|
||||
#endif /* FD_CLOEXEC */
|
||||
#endif /* VM_CHECK_MODE */
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче