2012-11-05 Pedro Alves <palves@redhat.com>
authorPedro Alves <palves@redhat.com>
Mon, 5 Nov 2012 16:23:36 +0000 (16:23 +0000)
committerPedro Alves <palves@redhat.com>
Mon, 5 Nov 2012 16:23:36 +0000 (16:23 +0000)
* gdb.base/foll-vfork.c (main): Call perror and _exit if execlp()
fails.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/foll-vfork.c

index ad0407dd3d612faf884f486146c4ff41cfc7fbf7..227b24fbd7895cb96a3bc6c2cac1525a8d41568e 100644 (file)
@@ -1,3 +1,8 @@
+2012-11-05  Pedro Alves  <palves@redhat.com>
+
+       * gdb.base/foll-vfork.c (main): Call perror and _exit if execlp()
+       fails.
+
 2012-11-03  Yao Qi  <yao@codesourcery.com>
 
        Fix PR gdb/14617.
index 3bb37ad4e27a256c2dc635cf34be84c6a2210878..85c54930b7bbbadb39deca48d6211cde63882595 100644 (file)
@@ -30,6 +30,8 @@ main ()
   if (pid == 0) {
     printf ("I'm the child!\n");
     execlp ("gdb.base/vforked-prog", "gdb.base/vforked-prog", (char *)0);
+    perror ("exec failed");
+    _exit (1);
   }
   else {
     printf ("I'm the proud parent of child #%d!\n", pid);
This page took 0.038507 seconds and 4 git commands to generate.