Skip to content

Commit

Permalink
updated comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mbhangui committed Oct 19, 2024
1 parent 5ce3478 commit 492e4c0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
9 changes: 6 additions & 3 deletions daemontools-x/supervise.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*- $Id: supervise.c,v 1.43 2024-08-29 18:51:11+05:30 Cprogrammer Exp mbhangui $ */
/*- $Id: supervise.c,v 1.44 2024-10-19 23:14:28+05:30 Cprogrammer Exp mbhangui $ */
#include <unistd.h>
#include <fcntl.h>
#include <sys/types.h>
Expand Down Expand Up @@ -1064,7 +1064,7 @@ main(int argc, char **argv)

if ((ptr = env_get("SCANINTERVAL")))
scan_ulong(ptr, &scan_interval);
if (chdir(dir) == -1) /*- chdir to /service */
if (chdir(dir) == -1) /*- chdir to /service/service_name */
strerr_die4sys(111, fatal.s, "unable to chdir to ", dir, ": ");
if (stat("down", &st) != -1)
flagwantup = 0;
Expand Down Expand Up @@ -1139,13 +1139,16 @@ main(int argc, char **argv)
void
getversion_supervise_c()
{
const char *x = "$Id: supervise.c,v 1.43 2024-08-29 18:51:11+05:30 Cprogrammer Exp mbhangui $";
const char *x = "$Id: supervise.c,v 1.44 2024-10-19 23:14:28+05:30 Cprogrammer Exp mbhangui $";

x++;
}

/*
* $Log: supervise.c,v $
* Revision 1.44 2024-10-19 23:14:28+05:30 Cprogrammer
* fixed comment
*
* Revision 1.43 2024-08-29 18:51:11+05:30 Cprogrammer
* use servicedir as first argument for exec of ./run, ./alert and ./shutdown
*
Expand Down
9 changes: 6 additions & 3 deletions daemontools-x/svscan.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* $Id: svscan.c,v 1.35 2024-05-09 22:39:36+05:30 mbhangui Exp mbhangui $
* $Id: svscan.c,v 1.36 2024-10-19 23:14:36+05:30 Cprogrammer Exp mbhangui $
*/
#include <unistd.h>
#include <signal.h>
Expand Down Expand Up @@ -877,7 +877,6 @@ main(int argc, char **argv)
}
sig_catch(sig_usr1, siguser1);
sig_catch(sig_usr2, siguser2);
/*- save the current dir */
#ifdef USE_RUNFS
use_run = env_get("DISABLE_RUN") ? 0 : 1;
if (use_run)
Expand All @@ -887,6 +886,7 @@ main(int argc, char **argv)
#else
pidfile = PIDFILE;
#endif
/*- save the current dir */
if (argc - optind >= 1 && argv[optind]) {
if (chdir(argv[optind]) == -1)
strerr_die4sys(111, FATAL, "unable to chdir to ", argv[optind], ": ");
Expand Down Expand Up @@ -958,13 +958,16 @@ main(int argc, char **argv)
void
getversion_svscan_c()
{
const char *y = "$Id: svscan.c,v 1.35 2024-05-09 22:39:36+05:30 mbhangui Exp mbhangui $";
const char *y = "$Id: svscan.c,v 1.36 2024-10-19 23:14:36+05:30 Cprogrammer Exp mbhangui $";

y++;
}

/*
* $Log: svscan.c,v $
* Revision 1.36 2024-10-19 23:14:36+05:30 Cprogrammer
* updated location of comment
*
* Revision 1.35 2024-05-09 22:39:36+05:30 mbhangui
* fix discarded-qualifier compiler warnings
*
Expand Down

0 comments on commit 492e4c0

Please sign in to comment.