Changeset 1757ffce in mainline


Ignore:
Timestamp:
2009-07-06T21:16:51Z (15 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8a81a73a
Parents:
95bc57c
Message:

Do not attempt to spawn non-existing programs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/init/init.c

    r95bc57c r1757ffce  
    4242#include <errno.h>
    4343#include <fcntl.h>
     44#include <sys/stat.h>
    4445#include <task.h>
    4546#include <malloc.h>
     
    127128{
    128129        char *argv[2];
     130        struct stat s;
     131       
     132        if (stat(fname, &s) == ENOENT)
     133                return;
    129134       
    130135        printf(NAME ": Spawning %s\n", fname);
     
    143148        task_exit_t texit;
    144149        int rc, retval;
     150        struct stat s;
     151       
     152        if (stat(fname, &s) == ENOENT)
     153                return;
    145154       
    146155        printf(NAME ": Starting %s\n", fname);
Note: See TracChangeset for help on using the changeset viewer.