- {
- /* Read the subprocess output, and test whether it contains the
- string "chicken". */
- char c[7];
- size_t count = 0;
-
- csc_present = true;
- while (safe_read (fd[0], &c[count], 1) > 0)
- {
- if (c[count] >= 'A' && c[count] <= 'Z')
- c[count] += 'a' - 'A';
- count++;
- if (count == 7)
- {
- if (memcmp (c, "chicken", 7) == 0)
- csc_present = false;
- c[0] = c[1]; c[1] = c[2]; c[2] = c[3];
- c[3] = c[4]; c[4] = c[5]; c[5] = c[6];
- count--;
- }
- }
-
- close (fd[0]);
-
- /* Remove zombie process from process list, and retrieve exit
- status. */
- exitstatus =
- wait_subprocess (child, "csc", false, true, true, false, NULL);
- if (exitstatus != 0)
- csc_present = false;
- }
+ {
+ /* Read the subprocess output, and test whether it contains the
+ string "chicken". */
+ char c[7];
+ size_t count = 0;
+
+ csc_present = true;
+ while (safe_read (fd[0], &c[count], 1) > 0)
+ {
+ if (c[count] >= 'A' && c[count] <= 'Z')
+ c[count] += 'a' - 'A';
+ count++;
+ if (count == 7)
+ {
+ if (memcmp (c, "chicken", 7) == 0)
+ csc_present = false;
+ c[0] = c[1]; c[1] = c[2]; c[2] = c[3];
+ c[3] = c[4]; c[4] = c[5]; c[5] = c[6];
+ count--;
+ }
+ }
+
+ close (fd[0]);
+
+ /* Remove zombie process from process list, and retrieve exit
+ status. */
+ exitstatus =
+ wait_subprocess (child, "csc", false, true, true, false, NULL);
+ if (exitstatus != 0)
+ csc_present = false;
+ }