[前][次][番号順一覧][スレッド一覧]

ruby-changes:51759

From: nobu <ko1@a...>
Date: Sun, 15 Jul 2018 18:57:31 +0900 (JST)
Subject: [ruby-changes:51759] nobu:r63971 (trunk): process.c: adjust indent [ci skip]

nobu	2018-07-15 18:57:27 +0900 (Sun, 15 Jul 2018)

  New Revision: 63971

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63971

  Log:
    process.c: adjust indent [ci skip]

  Modified files:
    trunk/process.c
Index: process.c
===================================================================
--- process.c	(revision 63970)
+++ process.c	(revision 63971)
@@ -292,16 +292,16 @@ assert_close_on_exec(int fd) https://github.com/ruby/ruby/blob/trunk/process.c#L292
 {
 #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 */
 }

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]