Document my Wysiwyg hook: `reload on signal' *** chimera/chimera.man.orig Sat Apr 13 01:14:41 1996 --- chimera/chimera.man Sun Feb 14 15:46:00 1999 *************** *** 6,11 **** --- 6,13 ---- .SH SYNOPSIS .B chimera + [\-s] [\-p] + .\" should later extend to allow ghostview syntax: [\-[no]reopen_sig] [\-[no]pid_report] .RI [ URL ] .SH DESCRIPTION *************** *** 20,31 **** --- 22,66 ---- The usual Xt options like geometry can also be specified on the command line. + .SH OPTIONS + .IP "\fB-p (\fPclass\fB pidReport)\fP" 1i + .\" should later extend to allow ghostview syntax: .IP "\fBpid_report (\fPclass\fB PidReport)\fP" 1i + .\" added by Julian H. Stacey 1) HeadCreate(globalcres, ## RequestCreate(globalcres, argv[1], base_url), NULL); ## else HeadCreate(globalcres, NULL, NULL); ## + ## + #if 0 ## + # This jhs patch from chimera 1 is not yet ported to chimera-2 ## + # ==================== ## + # *************** ## + # *** 193,198 **** ## + # offset(openButtonShortcut), XtRImmediate, (XtPointer)True }, ## + # { "localIndexFiles", "LocalIndexFiles", XtRString, sizeof(char *), ## + # offset(localIndexFiles), XtRString, (XtPointer)"index.html" }, ## + # }; ## + # ## + # static XtActionsRec actionsList[] = ## + # --- 193,202 ---- ## + # offset(openButtonShortcut), XtRImmediate, (XtPointer)True }, ## + # { "localIndexFiles", "LocalIndexFiles", XtRString, sizeof(char *), ## + # offset(localIndexFiles), XtRString, (XtPointer)"index.html" }, ## + # + { "reopenSig", XtCBoolean, XtRBoolean, sizeof(Boolean), ## + # + offset(reopenSig), XtRImmediate, (XtPointer)False }, ## + # + { "pidReport", XtCBoolean, XtRBoolean, sizeof(Boolean), ## + # + offset(pidReport), XtRImmediate, (XtPointer)False }, ## + # }; ## + # ## + # static XtActionsRec actionsList[] = ## + # *************** ## + # *** 252,262 **** ## + # signal(SIGALRM, SIG_IGN); /* changed when necessary in src/net.c */ ## + # signal(SIGPIPE, SIG_IGN); ## + # ## + # StartReaper(); ## + # ## + # root.toplevel = XtAppInitialize(&(root.appcon), "Chimera", NULL, 0, ## + # &argc, argv, fallback_resources, NULL, 0); ## + # if (root.toplevel == 0) exit(1); ## + # ## + # /* ## + # * Grab up the resources. ## + # --- 258,328 ---- ## + # signal(SIGALRM, SIG_IGN); /* changed when necessary in src/net.c */ ## + # signal(SIGPIPE, SIG_IGN); ## + # ## + # StartReaper(); ## + # ## + # root.toplevel = XtAppInitialize(&(root.appcon), "Chimera", NULL, 0, ## + # &argc, argv, fallback_resources, NULL, 0); ## + # if (root.toplevel == 0) exit(1); ## + # + ## + # + /* I would like to do the following ## + # + * if (root.reopenSig == True) and ## + # + * if (root.pidReport == True) ## + # + * much later, in case there is some more ## + # + * initialising that chimera wants to do, but using xxgdb I ## + # + * determined that the call to XtGetApplicationResources zeroes ## + # + * root.reopenSig and root.pidReport ## + # + */ ## + # + if (root.reopenSig == True) ## + # + { ## + # + signal(SIGUSR1,ReloadAction) ; ## + # + /* Set signal handling before printing process number, so no one ## + # + * can send a an unexpectd SIGUSR1 that would kill us. ## + # + * I put off accepting first signal while ghostview is presumably ## + # + * initialising stuff that maybe needed for the resize function ## + # + * (that I never wrote, merely grabbed shared use of). ## + # + # I also presume there's not much advantage to accepting ## + # + * a SIGUSR1 reopen till now. ## + # + */ ## + # + } ## + # + if (root.pidReport == True) ## + # + { ## + # + printf("%d\n",(int)(getpid())); ## + # + /* Before I added the flush, when I called this from a makefile, ## + # + * with a vi process about to start, (needing the signal number) ## + # + the pid was printed too late. ## + # + */ ## + # + fflush(stdout); ## + # + } ## + # ## + # /* ## + # * Grab up the resources. ## + # ==================== ## + #endif /* * And away we go... # does not apply to 4.1.1-RELEASE # *** src/widget.h.orig Fri Apr 18 13:18:38 1997 # --- src/widget.h Fri Oct 2 00:13:07 1998 # *************** # *** 68,73 **** # --- 68,75 ---- # Boolean cacheIgnoreExpires; # Boolean openButtonShortcut; /* enable foo.com -> http://foo.com/ shortcut */ # char *localIndexFiles; /* look for index.html etc. in local directories */ # + Boolean reopenSig; # + Boolean pidReport; # # /* # * Private data #============================== # Below is appended the old equivalent for chimera-1.65 # # *** src/chimera.man.orig Sun Jun 18 12:41:48 1995 # --- src/chimera.man Sun Jun 18 16:14:09 1995 # *************** # *** 6,11 **** # --- 6,13 ---- # # .SH SYNOPSIS # .B chimera # + [\-s] [\-p] # + .\" should later extend to allow ghostview syntax: [\-[no]reopen_sig] [\-[no]pid_report] # .RI [ URL ] # # .SH DESCRIPTION # *************** # *** 22,27 **** # --- 24,59 ---- # The usual Xt options like geometry can also be specified on the command # line. # # + .SH OPTIONS # + .IP "\fB-p (\fPclass\fB pidReport)\fP" 1i # + .\" should later extend to allow ghostview syntax: .IP "\fBpid_report (\fPclass\fB PidReport)\fP" 1i # + .\" added by Julian H. Stacey