24.05.2014 Views

AIX Version 4.3 Differences Guide

AIX Version 4.3 Differences Guide

AIX Version 4.3 Differences Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

kernel extension to detect process termination. This is still preferable however to<br />

the previous function of SRC that would not detect subsystem failure at all in this<br />

situation.<br />

If you run the lssrc command with the -S flag, you receive a list of the subsystem<br />

attributes. The action is set to -R (for respawn) or -O (for once). The value of<br />

action must be -R to have the subsystem restarted. Also, there is a retry limit. If<br />

the subsystem fails more than once within the configured waittime (20 seconds<br />

by default), it will not be restarted.<br />

The action and waittime attributes can be set using the mkssys command or<br />

changed with the chssys command.<br />

This new feature of the srcmstr daemon can be disabled if required by specifying<br />

the -B option when starting the daemon. This is usually performed by an entry in<br />

/etc/inittab.<br />

6.10.2 Thread-Safe Routines in libsrc<br />

In previous versions of <strong>AIX</strong>, some of the libsrc subroutines are neither threadsafe<br />

nor reentrant. This prevents other libraries and applications that call these libsrc<br />

subroutines from achieving thread-safety and reentrance requirements.<br />

The libsrc subroutines of interest in a threaded environment are those that<br />

support communication with an SRC subsystem. In other words, the routines that<br />

are used by an application, that may be multi-threaded, to interrogate the SRC.<br />

The libsrc subroutines that update the subsystem configuration data, and those<br />

that are used by SRC commands to process input parameters, are not required in<br />

a threaded environment. This is because the applications that use these routines,<br />

the srcmstr daemon itself along with lssrc and related commands, are not<br />

threaded applications.<br />

The threadsafe and reentrant routines are shown in Table 23. The new function<br />

has been implemented by changing the internals of some routines and by<br />

providing new threadsafe and reentrant versions of other routines. The new<br />

routines are indicated by the _r extension on the name. Where a new routine has<br />

been implemented, the original non-threadsafe version has been retained for use<br />

by non-threaded applications and for binary compatibility with previous versions<br />

of <strong>AIX</strong>.<br />

Table 23. Threadsafe Routines in libsrc<br />

New threadsafe routines<br />

src_err_msg_r<br />

srcrrqs_r<br />

srcstattxt_r<br />

srcstat_r<br />

Existing routines made threadsafe<br />

srcsrpy<br />

srcstathdr<br />

srcstop<br />

srcstrt<br />

srcsrqt_r<br />

srcsbuf_r<br />

System Management and Utilities 133

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!