summary |
tags |
clone url |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
57fd7c6)
SCCS-vsn: sys/kern/kern_exec.c 6.10
SCCS-vsn: sys/kern/kern_physio.c 6.5
-/* kern_exec.c 6.9 85/03/12 */
+/* kern_exec.c 6.10 85/03/12 */
#include "../machine/reg.h"
#include "../machine/pte.h"
#include "../machine/reg.h"
#include "../machine/pte.h"
uap = (struct execa *)u.u_ap;
bno = rmalloc(argmap, (long)ctod(clrnd((int)btoc(NCARGS))));
if (bno == 0) {
uap = (struct execa *)u.u_ap;
bno = rmalloc(argmap, (long)ctod(clrnd((int)btoc(NCARGS))));
if (bno == 0) {
- swkill(u.u_procp, "exece");
+ swkill(u.u_procp, "exec: no swap space");
goto bad;
}
if (bno % CLSIZE)
goto bad;
}
if (bno % CLSIZE)
- swkill(u.u_procp, "i/o error mapping pages");
+ swkill(u.u_procp, "exec: I/O error mapping pages");
/*
* set SUID/SGID protections, if no tracing
*/
/*
* set SUID/SGID protections, if no tracing
*/
-/* kern_physio.c 6.4 84/10/31 */
+/* kern_physio.c 6.5 85/03/12 */
#include "../machine/pte.h"
#include "../machine/pte.h"
if (bp->b_flags & B_ERROR) {
if ((flag & (B_UAREA|B_PAGET)) || rdflg == B_WRITE)
panic("hard IO err in swap");
if (bp->b_flags & B_ERROR) {
if ((flag & (B_UAREA|B_PAGET)) || rdflg == B_WRITE)
panic("hard IO err in swap");
+ swkill(p, "swap: read error from swap device");
}
nbytes -= c;
dblkno += btodb(c);
}
nbytes -= c;
dblkno += btodb(c);
struct proc *p;
char *rout;
{
struct proc *p;
char *rout;
{
- printf("pid %d: ", p->p_pid);
- if (rout)
- printf(mesg = "killed due to no swap space\n");
- else
- printf(mesg = "killed on swap error\n");
- uprintf("sorry, pid %d was %s", p->p_pid, mesg);
+ printf("pid %d: %s", p->p_pid, rout);
+ uprintf("sorry, pid %d was killed in %s", p->p_pid, rout);
/*
* To be sure no looping (e.g. in vmsched trying to
* swap out) mark process locked in core (as though
/*
* To be sure no looping (e.g. in vmsched trying to
* swap out) mark process locked in core (as though