make the timeout for process/vt synchronization "config" settable and
ddb/gdb patchable
This commit is contained in:
parent
4fe22aef7f
commit
b6867c91a4
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: files.wscons,v 1.9 1998/06/26 21:20:34 drochner Exp $
|
||||
# $NetBSD: files.wscons,v 1.10 1999/01/29 22:24:24 drochner Exp $
|
||||
|
||||
#
|
||||
# "Workstation Console" glue; attaches frame buffer to emulator & keyboard,
|
||||
|
@ -16,7 +16,8 @@ defopt opt_wsemul.h WSEMUL_DEFAULT WSEMUL_NO_DUMB
|
|||
WSEMUL_SUN WSEMUL_VT100
|
||||
defopt opt_wskernattr.h WS_KERNEL_FG WS_KERNEL_BG
|
||||
WS_KERNEL_COLATTR WS_KERNEL_MONOATTR
|
||||
defopt opt_wsdisplay_compat.h WSDISPLAY_COMPAT_USL WSDISPLAY_COMPAT_RAWKBD
|
||||
defopt opt_wsdisplay_compat.h WSDISPLAY_COMPAT_USL WSCOMPAT_USL_SYNCTIMEOUT
|
||||
WSDISPLAY_COMPAT_RAWKBD
|
||||
WSDISPLAY_COMPAT_PCVT WSDISPLAY_COMPAT_SYSCONS
|
||||
|
||||
# this loses, but there's no way to define attributes which have attributes
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: wsdisplay_compat_usl.c,v 1.6 1999/01/26 14:22:14 drochner Exp $ */
|
||||
/* $NetBSD: wsdisplay_compat_usl.c,v 1.7 1999/01/29 22:24:24 drochner Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998
|
||||
|
@ -88,6 +88,11 @@ static const struct wscons_syncops usl_syncops = {
|
|||
_usl_sync_destroy
|
||||
};
|
||||
|
||||
#ifndef WSCOMPAT_USL_SYNCTIMEOUT
|
||||
#define WSCOMPAT_USL_SYNCTIMEOUT 5 /* seconds */
|
||||
#endif
|
||||
static int wscompat_usl_synctimeout = WSCOMPAT_USL_SYNCTIMEOUT;
|
||||
|
||||
static int
|
||||
usl_sync_init(scr, sdp, p, acqsig, relsig, frsig)
|
||||
struct wsscreen *scr;
|
||||
|
@ -176,7 +181,7 @@ usl_detachproc(cookie, waitok, callback, cbarg)
|
|||
sd->s_cbarg = cbarg;
|
||||
sd->s_flags |= SF_DETACHPENDING;
|
||||
psignal(sd->s_proc, sd->s_relsig);
|
||||
timeout(usl_detachtimeout, sd, 5*hz);
|
||||
timeout(usl_detachtimeout, sd, wscompat_usl_synctimeout * hz);
|
||||
|
||||
return (EAGAIN);
|
||||
}
|
||||
|
@ -237,7 +242,7 @@ usl_attachproc(cookie, waitok, callback, cbarg)
|
|||
sd->s_cbarg = cbarg;
|
||||
sd->s_flags |= SF_ATTACHPENDING;
|
||||
psignal(sd->s_proc, sd->s_acqsig);
|
||||
timeout(usl_attachtimeout, sd, 5*hz);
|
||||
timeout(usl_attachtimeout, sd, wscompat_usl_synctimeout * hz);
|
||||
|
||||
return (EAGAIN);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue