From 3aff8d67542e009baef7456fb3b1da947fca011c Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Tue, 19 Dec 1995 19:33:42 +0000 Subject: [PATCH] added missing arg to execlp() --- src/ca/posix_depen.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/ca/posix_depen.c b/src/ca/posix_depen.c index 97370c2fd..b67549355 100644 --- a/src/ca/posix_depen.c +++ b/src/ca/posix_depen.c @@ -29,6 +29,9 @@ * Modification Log: * ----------------- * $Log$ + * Revision 1.16 1995/10/12 01:35:28 jhill + * Moved cac_mux_io() to iocinf.c + * * Revision 1.15 1995/08/22 00:22:07 jhill * Dont recompute connection timers if the time stamp hasnt changed * @@ -223,11 +226,11 @@ void ca_spawn_repeater() * if here */ pImageName = "caRepeater"; - status = execlp(pImageName, NULL); + status = execlp(pImageName, pImageName, NULL); if(status<0){ ca_printf("!!WARNING!!\n"); ca_printf("The executable \"%s\" couldnt be located\n", pImageName); - ca_printf("because - %s\n", strerror(MYERRNO)); + ca_printf("because of errno = \"%s\"\n", strerror(MYERRNO)); ca_printf("You may need to modify your PATH environment variable.\n"); ca_printf("Creating CA repeater with fork() system call.\n"); ca_printf("Repeater will inherit parents process name and resources.\n");