pthread_atfork man page on HP-UX

Man page or keyword search:  
man Server   10987 pages
apropos Keyword Search (all sections)
Output format
HP-UX logo
[printable version]

pthread_atfork(3T)					    pthread_atfork(3T)

NAME
       pthread_atfork() - register fork handlers.

SYNOPSIS
PARAMETERS
	      prepare	This function is called before performing the

	      parent	This  function	is  called in the parent process after
			performing the

	      child	This function is called in  the	 child	process	 after
			performing the

DESCRIPTION
       The  function  allows  an  application to install fork handlers.	 These
       fork handlers will be called before and after a operation.  These  han‐
       dlers  will  be	called in the context of the thread calling Similar to
       the handlers, the application does not need to do anything special  for
       these  fork  handlers to be called.  They will be invoked by the system
       when a operation occurs.

       The function is called before the operation in the parent process.  The
       function	 is  called  after  the	 operation in the parent process.  The
       function is called after the operation in the child process.

       If a fork handler is not needed in one or more of these	three  places,
       the appropriate fork handler parameter may be set to NULL.

       A  process  may install multiple fork handling functions.  The and fork
       handlers will be called in the  order  in  which	 they  were  installed
       (i.e., The fork handlers will be called in the opposite order (i.e.,

RETURN VALUE
       Upon successful completion, returns zero. Otherwise, an error number is
       returned to indicate the error (the variable is not set).

ERRORS
       If any of the following occur, the function returns  the	 corresponding
       error number:

	      [ENOMEM]	     There  is insufficient table space to install the
			     fork handlers.

AUTHOR
       was derived from the IEEE POSIX P1003.1c standard.

SEE ALSO
       fork(2), atexit(3).

STANDARDS CONFORMANCE
				Pthread Library		    pthread_atfork(3T)
[top]

List of man pages available for HP-UX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net