~ubuntu-branches/ubuntu/precise/esound/precise-201110201247

« back to all changes in this revision

Viewing changes to esdlib.c

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2007-10-05 14:00:43 UTC
  • Revision ID: james.westby@ubuntu.com-20071005140043-h3qrvkzyk48e7l3q
Tags: 0.2.38-0ubuntu4
esdlib.c: Check if the esd binary exists at all. If not, forego forking
a shell and trying to execute it. This both improves startup time and also
avoids the "/bin/sh: /usr/bin/esd: not found" warning. (LP: #134641)

Show diffs side-by-side

added added

removed removed

Lines of Context:
757
757
        if (pipe (esd_pipe) < 0)
758
758
          goto finish_connect;
759
759
 
 
760
        /* do not bother trying if esd does not exist */
 
761
        if (access(SERVERDIR"/esd", X_OK) != 0)
 
762
          goto finish_connect;
 
763
 
760
764
        childpid = fork();
761
765
        if(!childpid) {
762
766
            /* child process */