mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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:
parent
78a2a1be76
commit
62870d2c73
1 changed files with 9 additions and 9 deletions
18
process.c
18
process.c
|
@ -292,16 +292,16 @@ assert_close_on_exec(int fd)
|
||||||
{
|
{
|
||||||
#if VM_CHECK_MODE > 0
|
#if VM_CHECK_MODE > 0
|
||||||
#if defined(HAVE_FCNTL) && defined(F_GETFD) && defined(FD_CLOEXEC)
|
#if defined(HAVE_FCNTL) && defined(F_GETFD) && defined(FD_CLOEXEC)
|
||||||
int flags = fcntl(fd, F_GETFD);
|
int flags = fcntl(fd, F_GETFD);
|
||||||
if (flags == -1) {
|
if (flags == -1) {
|
||||||
static const char m[] = "reserved FD closed unexpectedly?\n";
|
static const char m[] = "reserved FD closed unexpectedly?\n";
|
||||||
(void)write(2, m, sizeof(m) - 1);
|
(void)write(2, m, sizeof(m) - 1);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (flags & FD_CLOEXEC) return;
|
if (flags & FD_CLOEXEC) return;
|
||||||
rb_bug("reserved FD did not have close-on-exec set");
|
rb_bug("reserved FD did not have close-on-exec set");
|
||||||
#else
|
#else
|
||||||
rb_bug("reserved FD without close-on-exec support");
|
rb_bug("reserved FD without close-on-exec support");
|
||||||
#endif /* FD_CLOEXEC */
|
#endif /* FD_CLOEXEC */
|
||||||
#endif /* VM_CHECK_MODE */
|
#endif /* VM_CHECK_MODE */
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue