Removed printing functionality from IS server.
This functionality is now provided by the LOG driver.
This commit is contained in:
parent
09830fc33e
commit
808202ee30
@ -149,11 +149,13 @@ PUBLIC void main()
|
|||||||
}
|
}
|
||||||
init_rand256(randbits);
|
init_rand256(randbits);
|
||||||
|
|
||||||
|
#if DEAD_CODE
|
||||||
/* Sign on as a server at all offices in the proper order. */
|
/* Sign on as a server at all offices in the proper order. */
|
||||||
if (svrctl(MMSIGNON, (void *) NULL) == -1) {
|
if (svrctl(MMSIGNON, (void *) NULL) == -1) {
|
||||||
printf("inet: server signon failed\n");
|
printf("inet: server signon failed\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
#ifdef __minix_vmd
|
#ifdef __minix_vmd
|
||||||
if (svrctl(SYSSIGNON, (void *) &info) == -1) pause();
|
if (svrctl(SYSSIGNON, (void *) &info) == -1) pause();
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ CFLAGS = -I$i
|
|||||||
LDFLAGS = -i
|
LDFLAGS = -i
|
||||||
LIBS = -lsys -lsysutil
|
LIBS = -lsys -lsysutil
|
||||||
|
|
||||||
OBJ = main.o dmp.o dmp_kernel.o dmp_pm.o dmp_fs.o diag.o kputc.o
|
OBJ = is.o dmp.o dmp_kernel.o dmp_pm.o dmp_fs.o
|
||||||
|
|
||||||
# build local binary
|
# build local binary
|
||||||
all build: $(SERVER)
|
all build: $(SERVER)
|
||||||
|
@ -58,7 +58,6 @@ PUBLIC int do_fkey_pressed(message *m)
|
|||||||
|
|
||||||
if (pressed(SF3)) fproc_dmp();
|
if (pressed(SF3)) fproc_dmp();
|
||||||
if (pressed(SF4)) dtab_dmp();
|
if (pressed(SF4)) dtab_dmp();
|
||||||
if (pressed(SF6)) diagnostics_dmp();
|
|
||||||
|
|
||||||
/* Inhibit sending a reply message. */
|
/* Inhibit sending a reply message. */
|
||||||
return(EDONTREPLY);
|
return(EDONTREPLY);
|
||||||
|
@ -334,12 +334,10 @@ PUBLIC void privileges_dmp()
|
|||||||
for (sp = &priv[0]; sp < &priv[NR_SYS_PROCS]; sp++)
|
for (sp = &priv[0]; sp < &priv[NR_SYS_PROCS]; sp++)
|
||||||
if (sp->s_proc_nr == rp->p_nr) { r ++; break; }
|
if (sp->s_proc_nr == rp->p_nr) { r ++; break; }
|
||||||
if (r == -1 && ! (rp->p_rts_flags & SLOT_FREE)) {
|
if (r == -1 && ! (rp->p_rts_flags & SLOT_FREE)) {
|
||||||
printf("... no privileges found, probaly a user process\n");
|
sp = &priv[USER_PRIV_ID];
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
printf("(%02u) %-7.7s %3x %02.2u",
|
printf("(%02u) %-7.7s 0x%02x %02.2u",
|
||||||
sp->s_id,
|
sp->s_id, rp->p_name,
|
||||||
rp->p_name,
|
|
||||||
sp->s_flags, sp->s_call_mask
|
sp->s_flags, sp->s_call_mask
|
||||||
);
|
);
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
@ -21,16 +21,10 @@ int callnr; /* system call number */
|
|||||||
|
|
||||||
extern int errno; /* error number set by system library */
|
extern int errno; /* error number set by system library */
|
||||||
|
|
||||||
/* Diagnostic messages buffer. */
|
|
||||||
char diag_buf[DIAG_BUF_SIZE];
|
|
||||||
int diag_size = 0;
|
|
||||||
int diag_next = 0;
|
|
||||||
|
|
||||||
/* Declare some local functions. */
|
/* Declare some local functions. */
|
||||||
FORWARD _PROTOTYPE(void init_server, (void) );
|
FORWARD _PROTOTYPE(void init_server, (void) );
|
||||||
FORWARD _PROTOTYPE(void get_work, (void) );
|
FORWARD _PROTOTYPE(void get_work, (void) );
|
||||||
FORWARD _PROTOTYPE(void reply, (int whom, int result) );
|
FORWARD _PROTOTYPE(void reply, (int whom, int result) );
|
||||||
FORWARD _PROTOTYPE(void signal_handler, (int sig) );
|
|
||||||
|
|
||||||
/*===========================================================================*
|
/*===========================================================================*
|
||||||
* main *
|
* main *
|
||||||
@ -56,9 +50,6 @@ PUBLIC void main(void)
|
|||||||
switch (callnr) {
|
switch (callnr) {
|
||||||
case SYS_EVENT:
|
case SYS_EVENT:
|
||||||
sigset = (sigset_t) m_in.NOTIFY_ARG;
|
sigset = (sigset_t) m_in.NOTIFY_ARG;
|
||||||
if (sigismember(&sigset, SIGKMESS)) {
|
|
||||||
result = do_new_kmess(&m_in);
|
|
||||||
}
|
|
||||||
if (sigismember(&sigset, SIGTERM)) {
|
if (sigismember(&sigset, SIGTERM)) {
|
||||||
/* nothing to do on shutdown */
|
/* nothing to do on shutdown */
|
||||||
}
|
}
|
||||||
@ -66,9 +57,6 @@ PUBLIC void main(void)
|
|||||||
/* nothing to do on shutdown */
|
/* nothing to do on shutdown */
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
case DIAGNOSTICS:
|
|
||||||
result = do_diagnostics(&m_in);
|
|
||||||
break;
|
|
||||||
case FKEY_PRESSED:
|
case FKEY_PRESSED:
|
||||||
result = do_fkey_pressed(&m_in);
|
result = do_fkey_pressed(&m_in);
|
||||||
break;
|
break;
|
||||||
@ -87,20 +75,6 @@ PUBLIC void main(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*===========================================================================*
|
|
||||||
* signal_handler *
|
|
||||||
*===========================================================================*/
|
|
||||||
PRIVATE void signal_handler(sig)
|
|
||||||
int sig; /* signal number */
|
|
||||||
{
|
|
||||||
/* Expect a SIGTERM signal when this server must shutdown. */
|
|
||||||
if (sig == SIGTERM) {
|
|
||||||
printf("Shutting down IS server due to SIGTERM.\n");
|
|
||||||
exit(0);
|
|
||||||
} else {
|
|
||||||
printf("IS got signal %d\n", sig);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*===========================================================================*
|
/*===========================================================================*
|
@ -3,15 +3,6 @@
|
|||||||
/* main.c */
|
/* main.c */
|
||||||
_PROTOTYPE( void main, (void) );
|
_PROTOTYPE( void main, (void) );
|
||||||
|
|
||||||
/* putk.c */
|
|
||||||
_PROTOTYPE( void kputc, (int c) );
|
|
||||||
|
|
||||||
/* diag.c */
|
|
||||||
_PROTOTYPE( int do_new_kmess, (message *m) );
|
|
||||||
_PROTOTYPE( int do_diagnostics, (message *m) );
|
|
||||||
_PROTOTYPE( void diag_putc, (int c) );
|
|
||||||
_PROTOTYPE( void diagnostics_dmp, (void) );
|
|
||||||
|
|
||||||
/* dmp.c */
|
/* dmp.c */
|
||||||
_PROTOTYPE( int do_fkey_pressed, (message *m) );
|
_PROTOTYPE( int do_fkey_pressed, (message *m) );
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user