From: Philip Homburg Date: Wed, 2 May 2007 15:20:28 +0000 (+0000) Subject: Hack in service to use RS_START instead of RS_UP. RS reports the use of RS_UP. X-Git-Tag: v3.1.4~382 X-Git-Url: http://zhaoyanbai.com/repos/icons/debian/static/man.7.ps?a=commitdiff_plain;h=56a68dc32bffa2e28c4e015ccfa9f5eeeb0bef79;p=minix.git Hack in service to use RS_START instead of RS_UP. RS reports the use of RS_UP. --- diff --git a/servers/rs/manager.c b/servers/rs/manager.c index 44029f35f..d0f04247d 100644 --- a/servers/rs/manager.c +++ b/servers/rs/manager.c @@ -59,6 +59,8 @@ int flags; /* extra flags, if any */ int r; endpoint_t ep; /* new endpoint no. */ +printf("RS: in do_up\n"); + /* See if there is a free entry in the table with system processes. */ for (slot_nr = 0; slot_nr < NR_SYS_PROCS; slot_nr++) { rp = &rproc[slot_nr]; /* get pointer to slot */ diff --git a/servers/rs/service.c b/servers/rs/service.c index 94731c819..fb89332af 100644 --- a/servers/rs/service.c +++ b/servers/rs/service.c @@ -43,6 +43,7 @@ PRIVATE char *known_requests[] = { #define RUN_CMD "run" #define RUN_SCRIPT "/etc/rs.single" /* Default script for 'run' */ +#define PATH_CONFIG "/etc/drivers.conf" /* Default config file */ /* Define names for arguments provided to this utility. The first few * arguments are required and have a known index. Thereafter, some optional @@ -86,7 +87,7 @@ PRIVATE int req_major; PRIVATE long req_period; PRIVATE char *req_script; PRIVATE char *req_label; -PRIVATE char *req_config; +PRIVATE char *req_config = PATH_CONFIG; PRIVATE int req_printep; PRIVATE int class_recurs; /* Nesting level of class statements */ @@ -178,6 +179,8 @@ PRIVATE int parse_arguments(int argc, char **argv) if (req_nr == RS_UP) { + req_nr= RS_START; + rs_start.rss_flags= 0; if (c_flag) rs_start.rss_flags |= RF_COPY;