HP Visualize J5000 hp workstations - hp-ux 10.20 graphics administration guide - Page 118

SIGCHLD and the Starbase Input Daemon, SIGPIPE Details, Gamma Correction

Page 118 highlights

SIGCHLD and the Starbase Input Daemon The Starbase input daemon is started whenever tracking or event monitoring is enabled. When tracking and event monitoring are turned off or when the output device is closed, Starbase terminates the daemon, using this process: 1. Set the SIGCHLD action to SIG_DFL, saving the old action. 2. Send a message to the input daemon asking it to terminate. 3. Call waitpid(2) to wait for the daemon's death. 4. Restore the saved SIGCHLD action. In a Starbase application using tracking or events, a non-graphics thread should not set the SIGCHLD action by calls to sigaction(2), sigvector(2), signal(2), sigset(2), or sigwait(2) concurrently with calls in the graphics thread to track(3g), track_off(3g), disable_events(3g), or gclose(3g). Possible consequences of violating this restriction are the same as those listed above for the grmd daemon. SIGPIPE Details The graphics libraries start a daemon process and communicate with that process via sockets in two situations: • For hardware texture mapping on an hp VISUALIZE-48/-48XP display using the Texture Interrupt Manager Daemon (timd). • For hp-PHIGS input using the PHIGS daemon (phg_daemon). When starting either of these daemons, the graphics library permanently sets the SIGPIPE action to SIG_IGN. This prevents the terminating SIGPIPE signal from being delivered to the process should the daemon die abnormally. If your application changes the SIGPIPE action to SIG_DFL or to a specific handler, an abnormal death of either timd or phg_daemon will result in a SIGPIPE signal being delivered to the process when the graphics library next attempts to communicate with the daemon. If the action is SIG_DFL, the process will terminate. Gamma Correction Gamma correction is used to alter hardware colormaps to compensate for the non-linearities of CRT monitors. Gamma correction can be used to improve the "ropy" or modulated appearance of antialiased lines. Gamma correction is also used to improve the appearance of shaded graphics images as well as scanned photographic images that have not already been gamma corrected. Page 118 Graphics Administration Guide for HP-UX 10.20

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171

SIGCHLD and the Starbase Input Daemon
The Starbase input daemon is started whenever tracking or event monitoring is enabled. When tracking
and event monitoring are turned off or when the output device is closed, Starbase terminates the
daemon, using this process:
1.
Set the
SIGCHLD
action to
SIG_DFL
, saving the old action.
2.
Send a message to the input daemon asking it to terminate.
3.
Call
waitpid(2)
to wait for the daemon's death.
4.
Restore the saved
SIGCHLD
action.
In a Starbase application using tracking or events, a non-graphics thread should not set the
SIGCHLD action by calls to
sigaction(2), sigvector(2), signal(2), sigset(2)
, or
sigwait(2)
concurrently with calls in the graphics thread to t
rack(3g), track_off(3g), disable_events(3g)
, or
gclose(3g)
.
Possible consequences of violating this restriction are the same as those listed above for the
grmd
daemon.
SIGPIPE Details
The graphics libraries start a daemon process and communicate with that process via sockets in two
situations:
For hardware texture mapping on an hp VISUALIZE-48/-48XP display using the Texture
Interrupt Manager Daemon (
timd
).
For hp-PHIGS input using the PHIGS daemon (
phg_daemo
n).
When starting either of these daemons, the graphics library permanently sets the
SIGPIPE
action to
SIG_IGN
. This prevents the terminating
SIGPIPE
signal from being delivered to the process should the
daemon die abnormally.
If your application changes the
SIGPIPE
action to
SIG_DFL
or to a specific handler, an abnormal death
of either timd or
phg_daemon
will result in a
SIGPIPE
signal being delivered to the process when the
graphics library next attempts to communicate with the daemon. If the action is
SIG_DFL
, the process
will terminate.
Gamma Correction
Gamma correction is used to alter hardware colormaps to compensate for the non-linearities of CRT
monitors. Gamma correction can be used to improve the "ropy" or modulated appearance of antialiased
lines. Gamma correction is also used to improve the appearance of shaded graphics images as well as
scanned photographic images that have not already been gamma corrected.
Graphics Administration Guide for HP-UX 10.20
Page 118