diff options
Diffstat (limited to 'src/satr.c')
-rw-r--r-- | src/satr.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -19,7 +19,7 @@ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * DEALINGS IN THE SOFTWARE. */ -#include "daemon.h" +#include "common.h" @@ -41,8 +41,9 @@ USAGE("[JOB-ID]...") int main(int argc, char *argv[]) { - PROLOGUE(1, O_RDWR, NULL); + PROLOGUE(1, O_RDWR); NO_OPTIONS; + t (set_hookpath()); if (argc > 1) { for (argv++; *argv; argv++) @@ -51,8 +52,8 @@ main(int argc, char *argv[]) while (!remove_job(NULL, 1)); t (errno); } - t (poke_daemon()); + t (poke_daemon(0, argv0)); CLEANUP_START; CLEANUP_END; } |