06-12-2011
The process receives an XEvent, not a signal, and it's shut down by the event handler code in something like XtAppMainLoop().
This User Gave Thanks to achenle For This Post:
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
The majority of the users on our system are "captured" users where they log into script that is launched via their .profile.
The password expiration message flashes by very quickly before they get the "menu" portion of the script to continue.
Other than a sleep at scripts startup to slow... (2 Replies)
Discussion started by: MizzGail
2 Replies
2. Linux
How can I configure it?
I have a swedish keyboard with swedish keyboard setting. Everything works perfectly (едц) except that button. What can be wrong?
/Richard
++
NOTE: It seems like the computer notices the input but that the button isn't assigned to anything (the keyboard-cursor stops).... (1 Reply)
Discussion started by: riwa
1 Replies
3. UNIX and Linux Applications
hi,
I have
* an IBM P550 machine,
* an AIX 5.3 running on it and
* an oracle database, already installed on it.
The problem (or question of my own) is:
Oracle tns listener, "CT_LISTENER", and the enterprise manager (EM) of the instance, which is uniq instance and called... (0 Replies)
Discussion started by: talipk
0 Replies
4. UNIX for Advanced & Expert Users
hi,
I have a problem about the Oracle related components. I'm not able to find any answer yet, and waiting for your responses...
Here is the configuration of my system:
* an IBM P550 machine,
* an AIX 5.3 running on it and
* an oracle database, already installed on it.
The problem (or... (1 Reply)
Discussion started by: talipk
1 Replies
5. Shell Programming and Scripting
Hi
I am using "trap" command in my script to prevent the user from running Ctrl-C during the its execution. My script creates number of children processes which in turn create some children processes as well during the execution.
When user / tester tries to run Ctrl-C, the parent process is... (1 Reply)
Discussion started by: aoussenko
1 Replies
6. Shell Programming and Scripting
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Discussion started by: shis100
7 Replies
7. Shell Programming and Scripting
I have following traps(s) in my code
Line 913 triggers one of the traps with parenthesizes around
(case-insensitive).
Checked by removing them.
Since it is a text I do not mind removing the offending () .
But why it triggers both traps ?
PS Where does the "bad" in trap... (0 Replies)
Discussion started by: annacreek
0 Replies
8. Shell Programming and Scripting
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
LEARN ABOUT HPUX
xtappmainloop
XtAppMainLoop() XtAppMainLoop()
Name
XtAppMainLoop - continuously process events.
Synopsis
void XtAppMainLoop(app_context)
XtAppContext app_context;
Inputs
app_context
Specifies the application context that identifies the application.
Returns
XtAppMainLoop() enters an infinite loop and never returns.
Description
XtAppMainLoop() enters an infinite loop which calls XtAppNextEvent() to wait for an events on all displays in app_context and XtDis-
patchEvent() to dispatch that event to the appropriate code.
Usage
Most applications will call XtAppNextEvent() as the last line of their main() procedure. Some applications may provide their own versions
of this loop, however. A custom event loop might test an application-dependent global flag or other termination condition before looping
back and calling XtAppNextEvent(). If the number of top-level widgets drops to zero, the application may be able to exit safely, for exam-
ple.
Applications that use multiple application contexts or that use internal event loops will have to build their own event loop.
Background
XtAppNextEvent() looks for X events in the input queue, and also handles timer events (see XtAppAddTimeOut()) and events from alternate
input sources (see XtAppAddInput()). If none of these events are pending and a work procedure (see XtAppAddWorkProc()) is registered,
XtAppNextEvent() invokes that work procedure to do background processing, otherwise it blocks waiting for an event. Note that XtAppNex-
tEvent() dispatches timer and input events directly, but returns any X events that occur. Within XtAppMainLoop(), these X events are
always passed to XtDispatchEvent().
XtDispatchEvent() dispatches an event to the appropriate event handlers (see XtAddEventHandler()). Note that the translation manager reg-
isters an event handler, and that events that are dispatched to the translation manager will be further dispatched through the transla-
tions-to-actions mechanism.
Example
XtAppMainLoop() is implemented as follows:
void XtAppMainLoop(app)
XtAppContext app;
{
XEvent event;
for (;;) {
XtAppNextEvent(app, &event);
XtDispatchEvent(&event);
}
}
See Also
XtAddEventHandler(1), XtAppAddInput(1), XtAppAddTimeOut(1), XtAppAddWorkProc(1), XtAppNextEvent(1), XtAppProcessEvent(1), XtDis-
patchEvent(1).
Xt - Event Handling XtAppMainLoop()