/[baselayout]/trunk/src/runscript.c
Gentoo

Diff of /trunk/src/runscript.c

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

Revision 2641 Revision 2642
278 if (service_pid == 0) { 278 if (service_pid == 0) {
279 if (rc_exists (RC_SVCDIR "runscript.sh")) { 279 if (rc_exists (RC_SVCDIR "runscript.sh")) {
280 execl (RC_SVCDIR "runscript.sh", service, service, arg1, arg2, 280 execl (RC_SVCDIR "runscript.sh", service, service, arg1, arg2,
281 (char *) NULL); 281 (char *) NULL);
282 eerror ("%s: exec `" RC_SVCDIR "runscript.sh': %s", 282 eerror ("%s: exec `" RC_SVCDIR "runscript.sh': %s",
283 service, strerror (errno)); 283 service, strerror (errno));
284 _exit (EXIT_FAILURE); 284 _exit (EXIT_FAILURE);
285 } else { 285 } else {
286 execl (RC_LIBDIR "sh/runscript.sh", service, service, arg1, arg2, 286 execl (RC_LIBDIR "sh/runscript.sh", service, service, arg1, arg2,
287 (char *) NULL); 287 (char *) NULL);
288 eerror ("%s: exec `" RC_LIBDIR "sh/runscript.sh': %s", 288 eerror ("%s: exec `" RC_LIBDIR "sh/runscript.sh': %s",
289 service, strerror (errno)); 289 service, strerror (errno));
290 _exit (EXIT_FAILURE); 290 _exit (EXIT_FAILURE);
291 } 291 }
292 } 292 }
293 293
294 retval = rc_waitpid (service_pid) == 0 ? true : false; 294 retval = rc_waitpid (service_pid) == 0 ? true : false;

Legend:
Removed from v.2641  
changed lines
  Added in v.2642

  ViewVC Help
Powered by ViewVC 1.1.20