A copy of the license is included in gfdl.sgml.
-->
-<!-- $Id: todo.sgml,v 1.34 2005-06-11 22:54:45 thib Exp $ -->
+<!-- $Id: todo.sgml,v 1.35 2005-07-19 10:40:12 thib Exp $ -->
<sect1 id="todo">
<title>Todo</title>
<sect2>
<title>High priority</title>
<itemizedlist>
+ <listitem>
+ <para>sets TZ= for jobs with a timezone option</para>
+ </listitem>
<listitem>
<para>test the fix for empty mails on non linux systems</para>
</listitem>
* `LICENSE' that comes with the fcron source distribution.
*/
- /* $Id: fcron.c,v 1.74 2005-06-11 22:50:02 thib Exp $ */
+ /* $Id: fcron.c,v 1.75 2005-07-19 10:40:08 thib Exp $ */
#include "fcron.h"
#include "socket.h"
#endif
-char rcs_info[] = "$Id: fcron.c,v 1.74 2005-06-11 22:50:02 thib Exp $";
+char rcs_info[] = "$Id: fcron.c,v 1.75 2005-07-19 10:40:08 thib Exp $";
void main_loop(void);
void check_signal(void);
#ifdef FCRONDYN
gettimeofday(&tv, NULL);
tv.tv_sec = (stime > 1) ? stime - 1 : 0;
- tv.tv_usec = 1000000 - tv.tv_usec;
+ /* we set tv_usec to slightly more than necessary to avoid
+ * infinite loop */
+ tv.tv_usec = 1001000 - tv.tv_usec;
if((retcode = select(set_max_fd+1, &read_set, NULL, NULL, &tv)) < 0 && errno != EINTR)
die_e("select return %d", errno);
#else
if (stime > 1)
sleep(stime - 1);
gettimeofday(&tv, NULL);
- usleep( 1000000 - tv.tv_usec );
+ /* we set tv_usec to slightly more than necessary to avoid
+ * infinite loop */
+ usleep( 1001000 - tv.tv_usec );
#endif /* FCRONDYN */
#else
sleep(stime);
* `LICENSE' that comes with the fcron source distribution.
*/
- /* $Id: fcrontab.c,v 1.66 2005-02-26 15:10:11 thib Exp $ */
+ /* $Id: fcrontab.c,v 1.67 2005-07-19 10:40:07 thib Exp $ */
/*
* The goal of this program is simple : giving a user interface to fcron
#include "temp_file.h"
#include "read_string.h"
-char rcs_info[] = "$Id: fcrontab.c,v 1.66 2005-02-26 15:10:11 thib Exp $";
+char rcs_info[] = "$Id: fcrontab.c,v 1.67 2005-07-19 10:40:07 thib Exp $";
void info(void);
void usage(void);
if ( user == NULL ) {
/* get user's name using getpwuid() */
if ( ! (pass = getpwuid(uid)) )
- die("user \"%s\" is not in passwd file. Aborting.", USERNAME);
+ die_e("user \"%s\" is not in passwd file. Aborting.", USERNAME);
/* we need to strdup2 the value given by getpwuid() because we free
* file->cf_user in delete_file */
user = strdup2(pass->pw_name);
asgid = pass->pw_gid;
}
else
- die("user \"%s\" is not in passwd file. Aborting.", user);
+ die_e("user \"%s\" is not in passwd file. Aborting.", user);
}
if (
parseopt(argc, argv);
if ( ! (pass = getpwnam(USERNAME)) )
- die("user \"%s\" is not in passwd file. Aborting.", USERNAME);
+ die_e("user \"%s\" is not in passwd file. Aborting.", USERNAME);
fcrontab_uid = pass->pw_uid;
fcrontab_gid = pass->pw_gid;