This functionality is now provided by the LOG driver.
}
init_rand256(randbits);
+#if DEAD_CODE
/* Sign on as a server at all offices in the proper order. */
if (svrctl(MMSIGNON, (void *) NULL) == -1) {
printf("inet: server signon failed\n");
exit(1);
}
+#endif
#ifdef __minix_vmd
if (svrctl(SYSSIGNON, (void *) &info) == -1) pause();
LDFLAGS = -i
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
all build: $(SERVER)
if (pressed(SF3)) fproc_dmp();
if (pressed(SF4)) dtab_dmp();
- if (pressed(SF6)) diagnostics_dmp();
/* Inhibit sending a reply message. */
return(EDONTREPLY);
for (j=-NR_TASKS; j<INIT_PROC_NR+2; j++)
maskstr[j+NR_TASKS] = '0';
maskstr[j+NR_TASKS] = '\0';
- printf("%8s %4d 0x%02x %3d %7lu %7lu %s\n",
+ printf("%8s %4d 0x%02x %3d %7lu %7lu %s\n",
ip->proc_name, ip->proc_nr, ip->flags, ip->priority,
(long)ip->initial_pc, ip->stksize, maskstr);
}
for (sp = &priv[0]; sp < &priv[NR_SYS_PROCS]; sp++)
if (sp->s_proc_nr == rp->p_nr) { r ++; break; }
if (r == -1 && ! (rp->p_rts_flags & SLOT_FREE)) {
- printf("... no privileges found, probaly a user process\n");
- continue;
+ sp = &priv[USER_PRIV_ID];
}
- printf("(%02u) %-7.7s %3x %02.2u",
- sp->s_id,
- rp->p_name,
+ printf("(%02u) %-7.7s 0x%02x %02.2u",
+ sp->s_id, rp->p_name,
sp->s_flags, sp->s_call_mask
);
printf("\n");
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. */
FORWARD _PROTOTYPE(void init_server, (void) );
FORWARD _PROTOTYPE(void get_work, (void) );
FORWARD _PROTOTYPE(void reply, (int whom, int result) );
-FORWARD _PROTOTYPE(void signal_handler, (int sig) );
/*===========================================================================*
* main *
switch (callnr) {
case SYS_EVENT:
sigset = (sigset_t) m_in.NOTIFY_ARG;
- if (sigismember(&sigset, SIGKMESS)) {
- result = do_new_kmess(&m_in);
- }
if (sigismember(&sigset, SIGTERM)) {
/* nothing to do on shutdown */
}
/* nothing to do on shutdown */
}
continue;
- case DIAGNOSTICS:
- result = do_diagnostics(&m_in);
- break;
case FKEY_PRESSED:
result = do_fkey_pressed(&m_in);
break;
}
-/*===========================================================================*
- * 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);
- }
-}
/*===========================================================================*
/* main.c */
_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 */
_PROTOTYPE( int do_fkey_pressed, (message *m) );