Send commitlog mailing list submissions to
        commitlog@lists.openmoko.org

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.openmoko.org/mailman/listinfo/commitlog
or, via email, send a message with subject or body 'help' to
        [EMAIL PROTECTED]

You can reach the person managing the list at
        [EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of commitlog digest..."
Today's Topics:

   1. Openmoko's OpenEmbedded repository. This is used to build the
      Openmoko distribution: Changes to 'org.openmoko.asu.dev'
      ([EMAIL PROTECTED])
   2. Openmoko's OpenEmbedded repository. This is used to build the
      Openmoko distribution: Changes to 'org.openmoko.asu.dev'
      ([EMAIL PROTECTED])
   3. r4552 - developers/zecke/app_restarter ([EMAIL PROTECTED])
--- Begin Message ---
 packages/alsa/alsa-state.bb          |   26 +++++++++++++++-----------
 packages/alsa/alsa-state/asound.conf |   12 ++++++++++++
 packages/alsa/alsa-state/asoundrc    |   12 ------------
 3 files changed, 27 insertions(+), 23 deletions(-)

New commits:
commit 7c0b35ccf79d2f884119dfb03658e6831f309f5a
Author: Dr. Michael Lauer <[EMAIL PROTECTED]>
Date:   Wed Jun 11 15:43:57 2008 +0000

    alsa-state: install correct file

commit a41171fd3e4451ce0f08d9d311d23fe97a2687c7
Author: Dr. Michael Lauer <[EMAIL PROTECTED]>
Date:   Wed Jun 11 15:31:56 2008 +0000

    alsa-state: fix standard alsa dmix configuration, it now works 
out-of-the-box




--- End Message ---
--- Begin Message ---
 packages/iotop/iotop_0.2.1.bb |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 5d4953aa290685a3b43d7de2efe13b45a97a1dac
Author: Holger Hans Peter Freyther <[EMAIL PROTECTED]>
Date:   Wed Jul 23 07:19:00 2008 +0200

    [iotop] Actually remove the site.py and site.pyo from the package
        Use do_install_append instead of _prepend... to remove the files
        that are provided by setuptools as well.




--- End Message ---
--- Begin Message ---
Author: zecke
Date: 2008-07-23 10:36:18 +0200 (Wed, 23 Jul 2008)
New Revision: 4552

Modified:
   developers/zecke/app_restarter/app_restarter.c
Log:
app_restarter: Make sure that argv[0] is the app we want to execute...
    Stupid oversight. argv[0] is supposed to the command name of the
    application.


Modified: developers/zecke/app_restarter/app_restarter.c
===================================================================
--- developers/zecke/app_restarter/app_restarter.c      2008-07-23 02:27:05 UTC 
(rev 4551)
+++ developers/zecke/app_restarter/app_restarter.c      2008-07-23 08:36:18 UTC 
(rev 4552)
@@ -196,17 +196,19 @@
  * Fork and execute the command, wait for the command to finish.
  * On any kind of exit ask the user to restart
  */
-int fork_and_exec(char* file, int argc, char** argv)
+int fork_and_exec(int argc, char** argv)
 {
     pid_t pid = vfork();
 
     if (pid == 0) {
-        execvp(file, argv);
-        fprintf(stderr, "Failed to launch: %s\n", file);
+        execvp(argv[0], argv);
+        fprintf(stderr, "Failed to launch: %s\n", argv[0]);
         _exit(-1);
     } else {
         int status;
 
+        fprintf(stderr, "Waiting for pid: %d\n", pid);
+
         /* wait for the process to die */
         while (waitpid(pid, &status, 0) != pid);
 
@@ -232,14 +234,14 @@
     }
 
     /* Create a list for execvp with a sentinel */
-    int commands = argc-3;
+    int commands = argc-2;
     char** command_arguments = (char**) malloc(sizeof(char*)*(commands+1));
     for (i = 0; i < commands; ++i)
         command_arguments[i] = argv[2+i];
     command_arguments[commands] = NULL;
 
     for (;;) {
-        int status = fork_and_exec(argv[2], commands, command_arguments);
+        int status = fork_and_exec(commands, command_arguments);
         handle_crash(status, argv[1]);
     }
 }




--- End Message ---
_______________________________________________
commitlog mailing list
commitlog@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/commitlog

Reply via email to