* $Header$
*
* Copyright (C) 1987 by the Massachusetts Institute of Technology
+ * For copying and distribution information, please see the file
+ * <mit-copyright.h>.
*
* This program starts the sms server in a "clean" environment.
* and then waits for it to exit.
*
- * $Log$
- * Revision 1.1 1987-06-01 03:35:33 wesommer
- * Initial revision
- *
*/
#ifndef lint
static char *rcsid_sms_starter_c = "$Header$";
#endif lint
+#include <mit-copyright.h>
#include <stdio.h>
+#include <strings.h>
#include <sys/types.h>
#include <sys/file.h>
#include <sys/wait.h>
#define SMS_LOG_FILE "/u1/sms/sms.log"
-#define SMS_PROG "/u1/sms/rpc/smsd"
+#define SMS_PROG "/u1/sms/bin/smsd"
int rdpipe[2];
char *sigdescr[] = {
time(&foo);
time_s = ctime(&foo)+4;
time_s[strlen(time_s)-6]='\0';
- fprintf(log, "%s %s", time_s, buf);
+ fprintf(log, "%s <%d> %s", time_s, pid, buf);
fflush(log);
} while (!done);
+ exit(0);
}