diff options
Diffstat (limited to 'src/satrm.c')
-rw-r--r-- | src/satrm.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/satrm.c b/src/satrm.c index 115373c..ac3b5fc 100644 --- a/src/satrm.c +++ b/src/satrm.c @@ -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" @@ -42,13 +42,14 @@ USAGE("JOB-ID...") int main(int argc, char *argv[]) { - PROLOGUE(argc >= 2, O_RDWR, NULL); + PROLOGUE(argc >= 2, O_RDWR); NO_OPTIONS; + t (set_hookpath()); for (argv++; *argv; argv++) t (remove_job(*argv, 0) && errno); - t (poke_daemon()); + t (poke_daemon(0, argv0)); CLEANUP_START; CLEANUP_END; } |