/[baselayout]/trunk/src/start-stop-daemon.c
Gentoo

Diff of /trunk/src/start-stop-daemon.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 2548 Revision 2549
10 */ 10 */
11 11
12#define POLL_INTERVAL 20000 12#define POLL_INTERVAL 20000
13#define START_WAIT 100000 13#define START_WAIT 100000
14 14
15#include <sys/types.h>
16#include <sys/ioctl.h>
15#include <sys/resource.h> 17#include <sys/resource.h>
16#include <sys/stat.h> 18#include <sys/stat.h>
17#include <sys/termios.h> 19#include <sys/termios.h>
18#include <sys/time.h> 20#include <sys/time.h>
19#include <sys/wait.h> 21#include <sys/wait.h>
725 /* Validate that the binary rc_exists if we are starting */ 727 /* Validate that the binary rc_exists if we are starting */
726 if (exec && start) 728 if (exec && start)
727 { 729 {
728 char *tmp; 730 char *tmp;
729 if (ch_root) 731 if (ch_root)
730 tmp = rc_strcatpaths (ch_root, exec, NULL); 732 tmp = rc_strcatpaths (ch_root, exec, (char *) NULL);
731 else 733 else
732 tmp = exec; 734 tmp = exec;
733 if (! rc_is_file (tmp)) 735 if (! rc_is_file (tmp))
734 { 736 {
735 eerror ("%s: %s does not exist", progname, tmp); 737 eerror ("%s: %s does not exist", progname, tmp);

Legend:
Removed from v.2548  
changed lines
  Added in v.2549

  ViewVC Help
Powered by ViewVC 1.1.20