[Ada] Remove a special case for forking-for-expect from ordinary spawn
authorPiotr Trojanek <trojanek@adacore.com>
Thu, 15 Apr 2021 12:17:48 +0000 (14:17 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 29 Jun 2021 14:23:48 +0000 (14:23 +0000)
gcc/ada/

* adaint.c (__gnat_portable_spawn): Revert change that
introduced setting of __gnat_in_child_after_fork.

gcc/ada/adaint.c

index 7770300..b2d4de6 100644 (file)
@@ -2423,7 +2423,6 @@ __gnat_portable_spawn (char *args[] ATTRIBUTE_UNUSED)
   if (pid == 0)
     {
       /* The child. */
-      __gnat_in_child_after_fork = 1;
       if (execv (args[0], MAYBE_TO_PTR32 (args)) != 0)
        _exit (1);
     }