aboutsummaryrefslogtreecommitdiffstats
path: root/src/satr.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@member.fsf.org>2016-01-01 22:34:34 +0100
committerMattias Andrée <maandree@member.fsf.org>2016-01-01 22:34:34 +0100
commit4cba520a67e615b43dc22994670a904daf8643ae (patch)
tree6649c99fa94d8b7842a8ca7df7478ccf722d4c67 /src/satr.c
parentremove satd-rm and satd-r and let satrm and satr do everything (not done yet) (diff)
downloadsat-4cba520a67e615b43dc22994670a904daf8643ae.tar.gz
sat-4cba520a67e615b43dc22994670a904daf8643ae.tar.bz2
sat-4cba520a67e615b43dc22994670a904daf8643ae.tar.xz
massive simpliciation and small bug fixes (not tested yet)
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to '')
-rw-r--r--src/satr.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/satr.c b/src/satr.c
index 3a46079..583bd68 100644
--- a/src/satr.c
+++ b/src/satr.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"
@@ -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;
}